whittlem / coinbaseprotracker

Coinbase Pro Portfolio Tracker
Apache License 2.0
40 stars 22 forks source link

SettingWithCopyWarning #9

Open k-a-r-g opened 3 years ago

k-a-r-g commented 3 years ago

CoinbasePro.py:161: 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

whittlem commented 3 years ago

This should be fixed now. Can you try it please?

closetogermany commented 2 years ago

@whittlem the issue persists, unfortunately.

===  Bot - XTZ-USD-1  =======================================================                                                      
/app/models/exchange/coinbase_pro/api.py:310: 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.ht
ml#returning-a-view-versus-a-copy
  df["price"] = df.copy().apply(