Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. Date(Index) Date_Year_Key Date_Month_Key Is_Late
  2.  
  3. 2014-01-01 2014 1 1
  4. 2014-01-03 2014 1 1
  5. 2014-01-03 2014 1 1
  6. 2014-01-03 2014 1 1
  7.  
  8. temp=big_cust_tm_series.groupby(['Date_Year_Key', 'Date_Month_Key'])['Is_Late'].mean()
  9. temp.plot(figsize=(15,5),
  10. title= 'Late records(Monthwise)', fontsize=14)
  11.  
  12. import statsmodels.api as sm
  13. sm.tsa.seasonal_decompose(temp).plot()
  14. result = sm.tsa.stattools.adfuller(temp)
  15. plt.show()
  16.  
  17. AttributeError: 'MultiIndex' object has no attribute 'inferred_freq'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement