remove scientific notation python code example

Example 1: not scientific notation python

df["price"].describe().apply(lambda x: format(x, 'f'))

Example 2: remove scientific notation python matplotlib

fig, ax = plt.subplots()
ax.plot(range(2003,2012,1),range(200300,201200,100))
ax.ticklabel_format(style='plain') #This is the line you need <-------
plt.show()

Example 3: python print do not use scientific notation

num = 5 / 40000000
output = f"{num:.9f}"
print(output)

Example 4: python - remove scientific notation

import pandas as pd
pd.options.display.float_format = '{:.2f}'.format