pylint-dev / pylint-ml

Pylint plugin enhancing code analysis for machine learning and data science
MIT License
2 stars 0 forks source link

add-enable-pandas-copy-on-write-mode-checker #18

Open PeterHamfelt opened 3 months ago

PeterHamfelt commented 3 months ago

Copy-on-Write was first introduced in version 1.5.0. Starting from version 2.0 most of the optimizations that become possible through CoW are implemented and supported. All possible optimizations are supported starting from pandas 2.1. CoW will be enabled by default in version 3.0.

References https://pandas.pydata.org/pandas-docs/stable/user_guide/copy_on_write.html#copy-on-write-cow

PeterHamfelt commented 3 months ago

https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#indexing-view-versus-copy