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

Preprocess.py throws SettingWithCopyWarning #42

Open
stefanDeveloper opened this issue Aug 7, 2021 · 0 comments
Open

Preprocess.py throws SettingWithCopyWarning #42

stefanDeveloper opened this issue Aug 7, 2021 · 0 comments

Comments

@stefanDeveloper
Copy link

Running preprocess.py results in the following warning:

./src/data/preprocess.py:91: 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: http://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
  mila_other_views_df['label'] = 0                                       # Mila images with alternative diagnoses
./src/data/preprocess.py:92: 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: http://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
  fig1_covid_views_df['label'] = 1                                       # Figure 1 images with COVID-19 diagnosis
@stefanDeveloper stefanDeveloper changed the title Preprocess.py throughs SettingWithCopyWarning Preprocess.py throws SettingWithCopyWarning Aug 7, 2021
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