xxxxxxxxxx
#To make all your floats show comma separators
pd.options.display.float_format = '{:,}'.format
# If you have int values, you can use
# (df is the dataframe, and column_name contains the data
# you want to be presented as comma-separated):
df.style.format({column_name:'{:,}'})
xxxxxxxxxx
# add thousand separator for integers and 2 decimal places for floats
df['count'] = df['count'].apply(lambda x: "{:,}".format(int(x)) if x == int(x) else "{:.2f}%".format(100*x))