TypeError: unhashable type: 'numpy.ndarray' when trying to plot a DataFrame
问题 I am new to Python and trying to create a plot graph from a DataFrame. I used the following piece of code: predictions= list() for the in range (10): predicted= StartARIMAForecasting(RegistrationRates, 5,1,0) predictions.append(predicted) RegistrationRates.append(predicted) data = {'Year':['2016','2017','2018','2019','2020','2021','2022','2023','2024','2025'], 'Registration Rate':predictions} resultdf = pd.DataFrame(data) print(resultdf) plt.xlabel('Year') plt.ylabel('Registration Rate') plt