How to convert number to million in pandas series?Pradipta Roy·Dec 19, 2022·1 min readdef inM(x): return '{:,.2f} M'.format(x / 1000000) Series.apply(inM) Python Share this