Takie coś:
s = pd.Series(range(10, 14), range(4))
pd.DataFrame(s, columns=["colname"])
działa ładnie. Ale takie coś:
df = pd.DataFrame(inflation, columns=["inflation"])
print(df)
Empty DataFrame
Columns: [inflation]
Index: []
już nie. inflation
jest ciężkie w zreprodukowaniu, bo pochodzi z excela po wielu przekształceniach, ale tyle wiemy:
print(type(inflation))
<class 'pandas.core.series.Series'>
print(inflation)
2012 0.0000
2013 0.0000
2014 0.0000
2015 0.0000
2016 0.0000
2017 0.0000
2018 0.0000
Name: INFLATION_EUR, dtype: float64
Ktoś ma pomysł o co może chodzić?