We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
I expected this to raise
>> pd.Categorical("A") ['A'] Categories (1, object): ['A']
This gets listified inside the call to maybe_infer_to_datetimelike in Categorical.__init__
maybe_infer_to_datetimelike
Categorical.__init__
The text was updated successfully, but these errors were encountered:
the docs for pd.Categorical do indeed suggest values should be list-like. and the string is NOT being interpreted as a list.
values
>>> pd.Categorical("ABC") ['ABC'] Categories (1, object): ['ABC'] >>>
this is a long standing behaviour, same result on 0.25.3
Sorry, something went wrong.
Deep inside tests.arrays.categorical.test_constructors.TestCategoricalConstructors.test_constructor is
# Scalars should be converted to lists cat = Categorical(1) assert len(cat.categories) == 1 assert cat.categories[0] == 1 assert len(cat.codes) == 1 assert cat.codes[0] == 0
Successfully merging a pull request may close this issue.
I expected this to raise
This gets listified inside the call to
maybe_infer_to_datetimelike
inCategorical.__init__
The text was updated successfully, but these errors were encountered: