Derived from the pandas-vet linter.
Autofix is sometimes available.
What it does#
inplace=True usages in
pandas function and method
Why is this bad?#
inplace=True encourages mutation rather than immutable data,
which is harder to reason about and may cause bugs. It also removes the
ability to use the method chaining style for
Further, in many cases,
inplace=True does not provide a performance
pandas will often copy
DataFrames in the background.