Skip to content
Open

kind #250

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pint_pandas/pint_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class PintType(ExtensionDtype):
"""

type = _Quantity
# kind = 'O'
kind = "O"
# str = '|O08'
# base = np.dtype('O')
# num = 102
Expand Down
11 changes: 11 additions & 0 deletions pint_pandas/testsuite/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,3 +311,14 @@ def test_issue246(self):

# now an operation where each cell is independent from each other
df.apply(lambda x: x * 2, axis=1)


def TestIssue245(BaseExtensionTests):
def test_issue245(self):
km = pd.Series([1.0, 2.0, np.nan], dtype="pint[km]")
kg = pd.Series([1.0, 2.0, np.nan], dtype="pint[kg]")

xx = pd.DataFrame({"a": km, "b": km})
yy = pd.DataFrame({"a": kg, "b": kg})

pd.concat([xx, yy], axis=0)
Loading