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

Pandas SettingWithCopyWarning #28

Open
MauritsDescamps opened this issue Jul 14, 2022 · 0 comments
Open

Pandas SettingWithCopyWarning #28

MauritsDescamps opened this issue Jul 14, 2022 · 0 comments

Comments

@MauritsDescamps
Copy link

MauritsDescamps commented Jul 14, 2022

When I run get_trend_stats I get the following warning multiple times:

featexp/base.py:23: 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

The origin of the problem is the fact that get_grouped_data changes its input dataframe. It might be better to copy the input data before doing anything with it.

Setup:

  • Python 3.8.13
  • featexp 0.0.7
  • Pandas 1.4.3
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