In a pandas dataframe, when I want to change the original dataframe, i.e by changing formatting of columns, adding/dropping columns, use substring on a column, I am not sure when I need to use inplace=True
and when I don't need this argument?
Asked
Active
Viewed 51 times
0

Victor
- 16,609
- 71
- 229
- 409
-
Also see https://stackoverflow.com/questions/45570984/pandas-is-inplace-true-considered-harmful-or-not – cs95 Jun 26 '18 at 16:15
-
@coldspeed Consider changing your name to `lightspeed` – ababuji Jun 26 '18 at 16:16
-
You don't need inplace=True... you rarely ever will. It was a mistake adding it into the API. – cs95 Jun 26 '18 at 16:16