How to convert number to million in pandas series?

def inM(x):
    return '{:,.2f} M'.format(x / 1000000)

Series.apply(inM)