I’m trying to reformat the x-axis and nothing I’m trying is working
when I use:
import pandas as pd
import matplotlib.pyplot as plt
z = pd.DataFrame([[2000,1,2],[2001,2,3],[2004,5,6]])
z=z.set_index(0)
z.plot
plt.show
the x-axis labels are formatted as 2,000.0 up to 2,000.0
How can I get it to simply show 2000 2001 2002 2003 2004 (no commas, no decimal point)?