-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: disallow scalar in Categorical constructor #38472
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
Conversation
We could also easily deprecate this first. I don't know if others would rely on it, but at least we did ourselves (the behaviour was explicitly tested) |
indifferent here. am ok pushing this thru or deprecating. |
doesn't this duplicate #38614 (or vice versa) |
no. one is for Categorical, the other for CategoricalIndex |
ok. should we deprecate this? i agree its very weird, but i suppose it might happen in the real world. |
Given that we had tests for it, and that it is actually also allowed for Series, I would go for deprecation first (it shouldn't be hard I think?) |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff