0

Want to pandas style Currency : Rupee \u20B9 (How to print currency symbol and an n-digit decimal number right aligned in Python)

format_dict = {'Premium Per Rep':'{0:,.0f}'}
f1=f.style.background_gradient().format(format_dict)

However, getting the below (works for $)

Bad Format

Henry Ecker
  • 31,792
  • 14
  • 29
  • 50

1 Answers1

0

Need to define the format spec correctly:

df.style.format('\u20B9{:,.0f}')
Attack68
  • 3,706
  • 1
  • 15
  • 33