Issue
Plotting data from a DataFrame into a line plot excludes "dates" on the x axis.
north_result = list(data.aggregate(pipeline))
dates =['Jun','Jul','Aug','Sep','Oct','Nov','Dec','Jan','Feb','Mar','Apr','May']
north_result_df = pd.DataFrame(north_result, index=dates)
north_result_df.index.name = 'Months'
north_result_df.plot.line()
Line plot requires dates just above 'months' on the x axis. Dates show if they are numeric and not strings...any help would be greatly appreciated! As you can tell i am pretty new to Pandas...
Solution
north_result = list(data.aggregate(pipeline))
dates =['Jun','Jul','Aug','Sep','Oct','Nov','Dec','Jan','Feb','Mar','Apr','May']
north_result_df = pd.DataFrame(north_result, index=dates)
north_result_df.index.name = 'Months'
plt.plot(north_result_df.index, north_result_df["total"])
plt.show()


list(data.aggregate(pipeline))does. But if you have a usual dataframe with numerical values in a column and a normal index (no multiindex, no PeriodIndex) you can useplt.plot(df.index, df["column"]).