'i dont get SettingWithCopyWarning [duplicate]
I love pandas and have been working in the library for years now, but I have never understood SettingWithCopyWarning or its documentation.
In the example I would have a DataFrame "df" with a few columns. Lets say one of them is called "negativeValue". If I would like to make this a positive figure I would do:
df['negativeValue'] = ABS(df['negativeValue'])
And as you probably already guessed, the SettingWithCopyWarning pops up!
I have tried with the .loc[row_indexer,col_indexer] = value instead but that doesnt really work for me. Probably I am doing something wrong and I would love help from one of you here on Stack!
Thnx!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
