-
Notifications
You must be signed in to change notification settings - Fork 46
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
allow missing values in columns #268
Conversation
partial fix for hgrecco#267 previously the code would fail with: DimensionalityError: Cannot convert from 'dimensionless' (dimensionless) to 'someunit' ([mass]).
nice |
Sorry, I should have tagged that as WIP... I've been trying to figure out the other changes and realized I don't understand what's going on in I think the code I changed in The code in |
oh the tests looked like it fixed one of the issues
yes
yea go for it, looks like pint-pandas/pint_pandas/pint_array.py Line 672 in 8c2fc78
if dtype is None
|
I guess if you're happy with it, it's okay...
there's a lot of duplication of code from calls that go through I was trying to figure out everything that's valid to construct a I've also not done much with the internals of Pandas before, so don't know when/why those methods are called. |
The methods I've listed the different possible inputs here https://pint-pandas.readthedocs.io/en/latest/user/initializing.html |
Previously the code would fail with:
if any of the values were missing. It seems much nicer if they were maintained as missing values of appropriate unit.
pre-commit run --all-files
with no errors