def formatfunc(*args, **kwargs):
    value = args[0]
if value >= 0:
    return '${:,.2f}'.format(value)
else:
    return '-${:,.2f}'.format(abs(value))
with pd.option_context('display.float_format', formatfunc):
    pass
How do I display floats as currency with negative sign before currency