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

mirror? #2

Merged
merged 24 commits into from
Aug 13, 2018
Merged

mirror? #2

merged 24 commits into from
Aug 13, 2018

Conversation

andrewgsavage
Copy link
Owner

No description provided.

>>> from pint.pandas_interface import PintArray
>>> import pandas as pd

>>> df = pd.DataFrame({"address": PintArray([1, 2, 3])})
>>> df
          address
0 1 dimensionless
1 2 dimensionless
2 3 dimensionless

>>> df.dtypes
address    Pint
dtype: object

>>> df['address']
0   1 dimensionless
1   2 dimensionless
2   3 dimensionless
Name: address, dtype: Pint

>>> df['address'].values.data
<Quantity([1 2 3], 'dimensionless')>

but unfortunately

>>> df['address'].values
<pint.pandas_interface.PintArray object at 0x117517f28>
@andrewgsavage andrewgsavage merged commit f6309b2 into andrewgsavage:znicholls Aug 13, 2018
andrewgsavage added a commit that referenced this pull request Aug 22, 2018
andrewgsavage added a commit that referenced this pull request Sep 3, 2018
# This is the 1st commit message:

Add PintArray.fillna, fixes test_fillna_scalar

# This is the commit message #2:

Revert "Add PintArray.fillna, fixes test_fillna_scalar"

This reverts commit ef910f3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants