You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error below, so I would simply remove the feature that is causing it. In my case is probably indicator_adx or add_trend_ta is the feature probably causing it. That's why I think a parameter to pick which feature to process would be helpful.
Traceback (most recent call last):
File "C:\Users\artur\AppData\Local\Temp\ipykernel_7992\260366147.py", line 1, in <cell line: 1>
df_window_pandas = add_all_ta_features(
File "C:\Users\artur\miniforge3\envs\env_tsflex\lib\site-packages\ta\wrapper.py", line 585, in add_all_ta_features
df = add_trend_ta(
File "C:\Users\artur\miniforge3\envs\env_tsflex\lib\site-packages\ta\wrapper.py", line 343, in add_trend_ta
df[f"{colprefix}trend_adx"] = indicator_adx.adx()
File "C:\Users\artur\miniforge3\envs\env_tsflex\lib\site-packages\ta\trend.py", line 790, in adx
adx_series[self._window] = directional_index[0: self._window].mean()
IndexError: index 14 is out of bounds for axis 0 with size 9
The text was updated successfully, but these errors were encountered:
When coming across an error, I would be able to just remove the feature that was causing the error and process the rest.
df_window = add_all_ta_features(
df_window,
open="open",
high="high",
low="low",
close="close",
volume="volume",
)
Would be something like this:
df_window = add_all_ta_features(
df_window,
open="open",
high="high",
low="low",
close="close",
volume="volume",
exclude_ta_features=["trend_dpo", "momentum_stoch_rsi"]
)
I'm getting this error below, so I would simply remove the feature that is causing it. In my case is probably indicator_adx or add_trend_ta is the feature probably causing it. That's why I think a parameter to pick which feature to process would be helpful.
The text was updated successfully, but these errors were encountered: