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

Should it be possible for the user to define their own None/Null/Empty? #4

Closed
root-11 opened this issue Oct 13, 2020 · 1 comment
Closed
Labels
question Further information is requested

Comments

@root-11
Copy link
Owner

root-11 commented Oct 13, 2020

In numerical calculations users may want to use 0 or 0.0 instead of None. In strings users may want a different value, f.x. "" as None.
What are the pro/con for implementing a custom None value?

users can/could just update the table instead:

sometable['column_x'] = [x = "" for x in sometable['column_x'] if x is None]  # *strings* 
sometable['column_x'] = [x = 0.0 for x in sometable['column_x'] if x is None]  # *floats*.
sometable['column_x'] = [x = 0 for x in sometable['column_x'] if x is None]  # *integers*.

...?

@root-11 root-11 added the question Further information is requested label Oct 13, 2020
@root-11
Copy link
Owner Author

root-11 commented Mar 8, 2021

Overdue. No responses.

@root-11 root-11 closed this as completed Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant