pylint-dev / pylint-ml

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

add-pandas-empty-column-misinitialization-checker #20

Open PeterHamfelt opened 3 months ago

PeterHamfelt commented 3 months ago

When adding a new empty column, it's important to fill it with NaN values instead of resorting to "filler" values such as zeros or empty strings. This approach maintains the functionality of methods like isnull or notnull.

References https://github.com/joshlk/pandas_style_guide?tab=readme-ov-file#empty-columns