Matplotlib/Pandas error using histogram
I have a problem making histograms from pandas series objects and I can't understand why it does not work. The code has worked fine before but now it does not. Here is a bit of my code (specifically, a pandas series object I'm trying to make a histogram of): type(dfj2_MARKET1['VSPD2_perc']) which outputs the result: pandas.core.series.Series Here's my plotting code: fig, axes = plt.subplots(1, 7, figsize=(30,4)) axes[0].hist(dfj2_MARKET1['VSPD1_perc'],alpha=0.9, color='blue') axes[0].grid(True) axes[0].set_title(MARKET1 + ' 5-40 km / h') Error message: AttributeError Traceback (most recent