8000 BUG: pivot_table not returning correct type when margin=True and aggfunc='mean' by mabelvj · Pull Request #28248 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

BUG: pivot_table not returning correct type when margin=True and aggfunc='mean' #28248

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 15 commits into from
Nov 23, 2019
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
Fixes #24893: re-added line
  • Loading branch information
mabelvj committed Sep 3, 2019
commit 537354c74f3992d4f5cbf79e457f1d60e077b985
1 change: 1 addition & 0 deletions pandas/tests/reshape/test_pivot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,7 @@ def test_pivot_table_margins_name_with_aggfunc_list(self):
expected = pd.DataFrame(table.values, index=ix, columns=cols)
tm.assert_frame_equal(table, expected)

@pytest.mark.xfail(reason="GH#17035 (np.mean of ints is casted back to ints)")
def test_categorical_margins(self, observed):
# GH 10989
df = pd.DataFrame(
Expand Down
0