I am plotting one column of a pandas dataframe as line plot, using plot() :
df.iloc[:,1].plot()
and get the desired result:
Now I want to plot another column of the same dataframe as bar chart using
ax=df.iloc[:,3].plot(kind='bar',width=1)
with the result:
And finally I want to combine both by
spy_price_data.iloc[:,1].plot(ax=ax)
which doesn't produce any plot.
Why are the x-ticks of the bar plot so different to the x-ticks of the line plot? How can I combine both plots in one plot?


