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

Mon Oct 26 2020 01:01:58 GMT+0000 (UTC) https://pbpython.com/styling-pandas.html

#python #pandas #format #currency

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension