Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error #6

Open
farhadaz24511 opened this issue Nov 25, 2023 · 0 comments
Open

error #6

farhadaz24511 opened this issue Nov 25, 2023 · 0 comments

Comments

@farhadaz24511
Copy link


TypeError Traceback (most recent call last)
Cell In[14], line 1
----> 1 y, yl, x1, x2, yf, ylf, x1f, x2f =mix_freq2(gdp.GDP_CYOY, ip.IP_YOY,lei.LEI_YOY, "3m","3m", 1, 2,
2 start_date=datetime.datetime(2011,3,31),
3 end_date=datetime.datetime(2013,3,31))

File D:\MIDAS\midas_pro-master\example\midas\mix.py:119, in mix_freq2(lf_data, hf_data1, hf_data2, x1lag, x2lag, ylag, horizon, start_date, end_date)
116 x2_rows = []
118 for lfdate in lf_data.loc[start_date:max_date].index:
--> 119 start_hf1 = hf_data1.index.get_loc(lfdate, method='bfill') # @todo Find a more efficient way
120 start_hf2 = hf_data2.index.get_loc(lfdate, method='bfill')
121 x1_rows.append(hf_data1.iloc[start_hf1 - horizon: start_hf1 - x1lag - horizon: -1].values)

TypeError: DatetimeIndex.get_loc() got an unexpected keyword argument 'method'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant