How to disable the index of series to matplotlib for plotting on the X-axis?

ipython

#1

I am currently plotting a series in Ipython notebook .For this I have created a Series and use plot function on the Series for plotting it,but by default the index of Series is available on the X-axis of plot .I want to know how to remove this.

s = Series(np.random.randn(10).cumsum(), index=np.arange(0, 100, 10))
    s.plot()


#2

@sid100158-You can remove this by passing the attribute use_index=False to s.plot. It will disable the index from plotting on the X-axis.

s = Series(np.random.randn(10).cumsum(), index=np.arange(0, 100, 10))
 s.plot(use_index=False)

Hope this helps!

Regards,
Hinduja