Skip to content Skip to sidebar Skip to footer

How To Avoid Some Xticks Are Auto-hidden In Pandas?

I have a dataframe which contains 18 rows and 4 columns. Now I would to plot it and use its index as xticks, so I do the following: ax0 = dfVariableImportance.plot() ax0.set_xtickl

Solution 1:

You should be able to do this in dataframe.plot()

dfVariableImportance.plot(xticks=dfVariableImportance.index)

Post a Comment for "How To Avoid Some Xticks Are Auto-hidden In Pandas?"