Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
PeterHamfelt opened this issue Mar 29, 2024 · 0 comments · Fixed by #43
Closed

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

PeterHamfelt opened this issue Mar 29, 2024 · 0 comments · Fixed by #43
Assignees
Labels
Enhancement ✨ New feature or request

Comments

@PeterHamfelt
Copy link
Member

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

@PeterHamfelt PeterHamfelt added the Enhancement ✨ New feature or request label Mar 29, 2024
@PeterHamfelt PeterHamfelt self-assigned this Mar 29, 2024
@PeterHamfelt PeterHamfelt linked a pull request Aug 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant