-
Notifications
You must be signed in to change notification settings - Fork 42
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
[WIP] Convert object dtype #58
Conversation
readu for review |
CHANGES
Outdated
@@ -6,6 +6,7 @@ pint-pandas Changelog | |||
|
|||
- Support for <NA> values in columns with integer magnitudes | |||
- Support for magnitudes of any type, such as complex128 or tuples #146 | |||
- A DataFrame/Series.pint.convert_object_dtype() function has been added to create PintArrays from Series of quantitys. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: quantitys to quantities
@staticmethod | ||
def _is_object_dtype_and_quantity(obj): | ||
return obj.dtype == "object" and all( | ||
[(isinstance(item, _Quantity) or pd.isna(item)) for item in obj.values] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this play well with uncertainties?
bors r+ |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Addresses #55