import numpy as np
import pyflux as pf
import pandas as pd
import matplotlib.pyplot as plt
BTC_df = pd.read_csv('BTC1.csv')
BTC_df = BTC_df.iloc[:,[5]]
#BTC_df = BTC_df['close']
BTC_returns = 100 * (np.log(BTC_df) - np.log(BTC_df.shift(1)))
BTC_returns = BTC_returns.dropna()
x = BTC_df.to_numpy()
plt.figure(figsize=(15,5))
plt.plot(BTC_returns)
plt.show()
model = pf.GAS(ar=2, sc=2, data= BTC_returns, family=pf.Poisson())
x = model.fit()
x.summary()
This is my code and I get the above error , there is no issue with the date and I’ve installed the pyflux package , pip install pyflux. I’m using spyder in anaconda. I’m not sure how to fix it . My data are Bitcoin returns over the past 5 years , daily data. The error is raised in the package, and it says return object.getattribute(self,name) And data_check .. transformed_data = data.ix[:,0].values