8000 TST: add test for df.where() with category dtype by ganevgv · Pull Request #29454 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

TST: add test for df.where() with category dtype #29454

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
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
format test
  • Loading branch information
ganevgv committed Nov 8, 2019
commit 35e91f9fab6f3a9b3d3523d5935b04de888f6daa
1 change: 1 addition & 0 deletions pandas/tests/frame/test_dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,7 @@ def test_df_where_with_category(self, kwargs):
# GH 16979
df = DataFrame(np.arange(2 * 3).reshape(2, 3), columns=list("ABC"))
mask = np.array([[True, False, True], [False, True, True]])

# change type to category
df.A = df.A.astype("category")
df.B = df.B.astype("category")
Expand Down
0