python - Pandas AttributeError: 'DataFrame' object has no ...
https://stackoverflow.com/questions/5218236101.01.2013 · If your data is indeed as shown (with columns Rate & Year), you are referencing a column (Datetime) that does not exist (in contrast with the data in the linked blog post, where there is indeed such a column):. import pandas as pd data = {'Year':[2013, 2013, 2013, 2014, 2014], 'Rate':[34.7, 34.6,34.6,35.3,34.18]} df = pd.DataFrame(data, columns=["Year", "Rate"]) …