When using matplotlib to graph time series data, I get strange mangled outputs
This only happens when I convert the time series string in the csv to a datetime object. I need to do this conversion to make use of Matplotlib's time series x axis labelling.
abc = pd.read_csv(path + "Weekly average capacity factor and demand - regular year" + ".csv", parse_dates=True, index_col="Month", header=0)
fig, ax = plt.subplots()
x = abc.index
y1 = abc["Wind"]
curve1 = ax.plot(x, y1)
pd.read_csv(parse_dates=True) creates the index as a datetime64[64] object. Perhaps this isn't optimized for use by matplotlib??
How can I make this work.