Style pandas value to currency

PHOTO EMBED

Mon Oct 26 2020 01:01:58 GMT+0000 (Coordinated Universal Time)

Saved by @ianh #python #pandas #format #currency

(df.groupby('name')['ext price']
 .agg(['mean', 'sum'])
 .style.format('${0:,.2f}'))
content_copyCOPY

https://pbpython.com/styling-pandas.html