I have a dataframe (df) and two series i've sliced from that dataframe.
X is for example 2014-10 | 2014-11 Y is for example numbers like 123, 345, 678, and I want to graph like this:
700
*
500
300
*
100 *
2014-10 2014-11 2014-12
My code:
xlist = df.month #series
x_string = str(xlist) #string
ylist = df.numbers #series
y_string = str(ylist) #string
plt.xticks(x,x_string) #set to use my series as the x axis values
plt.plot(x, ylist, 'bo') #plot x(x_string) and y(ylist) axis on the graph.
plt.show() #show my graph
I've tried plotting both the series and the strings but neither are working.
for now It's been suggested I ust don't use xticks, and I can get:
df.plot(x='month',
y='numbers',
title='Time dependency of ...')