8000 API: ExtensionDtype._is_numeric by TomAugspurger · Pull Request #22345 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

API: ExtensionDtype._is_numeric #22345

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

Merged
merged 8 commits into from
Aug 20, 2018
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fixed test
  • Loading branch information
TomAugspurger committed Aug 14, 2018
commit 50de326a37873d8c6667fd3f33e36cddaa8af9b4
5 changes: 3 additions & 2 deletions pandas/tests/extension/integer/test_integer.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,10 +705,11 @@ def test_groupby_mean_included():
})

result = df.groupby("A").sum()
# TODO(#22346): preserve Int64 dtype
expected = pd.DataFrame({
"B": np.array([1.0, 3.0]),
"C": IntegerArray([1, 3], dtype="Int64")
})
"C": np.array([1, 3], dtype="int64")
}, index=pd.Index(['a', 'b'], name='A'))
tm.assert_frame_equal(result, expected)


Expand Down
0