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
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
df[f"{colprefix}volume_adi"] = AccDistIndexIndicator(
C:\Users\UserName\.virtualenvs\A8wwRToZ\lib\site-packages\ta\wrapper.py:94: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
df[f"{colprefix}volume_obv"] = OnBalanceVolumeIndicator(
C:\Users\UserName\.virtualenvs\A8wwRToZ\lib\site-packages\ta\wrapper.py:99: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
df[f"{colprefix}volume_cmf"] = ChaikinMoneyFlowIndicator(
C:\Users\UserName\.virtualenvs\A8wwRToZ\lib\site-packages\ta\wrapper.py:104: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
df[f"{colprefix}volume_fi"] = ForceIndexIndicator(
C:\Users\UserName\.virtualenvs\A8wwRToZ\lib\site-packages\ta\wrapper.py:109: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
df[f"{colprefix}volume_mfi"] = MFIIndicator(
C:\Users\UserName\.virtualenvs\A8wwRToZ\lib\site-packages\ta\wrapper.py:122: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
df[f"{colprefix}volume_em"] = indicator_eom.ease_of_movement()
C:\Users\UserName\.virtualenvs\A8wwRToZ\lib\site-packages\ta\trend.py:768: RuntimeWarning: invalid value encountered in double_scalars
dip[i] = 100 * (self._dip[i] / self._trs[i])
C:\Users\UserName\.virtualenvs\A8wwRToZ\lib\site-packages\ta\trend.py:772: RuntimeWarning: invalid value encountered in double_scalars
din[i] = 100 * (self._din[i] / self._trs[i])
Also tried:
ta.add_all_ta_features(
df,
colprefix="LTC:",
**{k: "LTC:" + k for k in ['open', 'high', 'low', 'close', 'volume']}
)
Error:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
df[f"{colprefix}volume_adi"] = AccDistIndexIndicator(
C:\Users\UserName\.virtualenvs\A8wwRToZ\lib\site-packages\ta\wrapper.py:94: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
df[f"{colprefix}volume_obv"] = OnBalanceVolumeIndicator(
C:\Users\UserName\.virtualenvs\A8wwRToZ\lib\site-packages\ta\wrapper.py:99: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
df[f"{colprefix}volume_cmf"] = ChaikinMoneyFlowIndicator(
C:\Users\UserName\.virtualenvs\A8wwRToZ\lib\site-packages\ta\wrapper.py:104: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
df[f"{colprefix}volume_fi"] = ForceIndexIndicator(
C:\Users\UserName\.virtualenvs\A8wwRToZ\lib\site-packages\ta\wrapper.py:109: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
df[f"{colprefix}volume_mfi"] = MFIIndicator(
C:\Users\UserName\.virtualenvs\A8wwRToZ\lib\site-packages\ta\wrapper.py:122: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
df[f"{colprefix}volume_em"] = indicator_eom.ease_of_movement()
C:\Users\UserName\.virtualenvs\A8wwRToZ\lib\site-packages\ta\trend.py:768: RuntimeWarning: invalid value encountered in double_scalars
dip[i] = 100 * (self._dip[i] / self._trs[i])
C:\Users\UserName\.virtualenvs\A8wwRToZ\lib\site-packages\ta\trend.py:772: RuntimeWarning: invalid value encountered in double_scalars
din[i] = 100 * (self._din[i] / self._trs[i])
The text was updated successfully, but these errors were encountered:
Similar to Issue #122
Code (were df is a pandas dataframe)
Error:
Also tried:
Error:
The text was updated successfully, but these errors were encountered: