We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import pandas as pd df = pd.DataFrame({'a': list('aab'), 'b': list('bba')}) df.a = df.a.astype('category') df.b = df.b.astype('category') df.astype('object') # ValueError: Wrong number of dimensions
related failure
In [1]: df = pd.DataFrame({ ...: 'a': ['foo', 'bar', None], ...: 'b': ['baz', 'quux', None] ...: }, dtype='category') ...: df ...: Out[1]: a b 0 foo baz 1 bar quux 2 NaN NaN In [2]: df.where(df.isnull(), None) --------------------------------------------------------------------------- ValueError: Wrong number of items passed 3, placement implies 1
Object dataframes can contain any Python object so anything should be convertible to them. Split off of #16979.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Code Sample, a copy-pastable example if possible
related failure
Problem description
Object dataframes can contain any Python object so anything should be convertible to them. Split off of #16979.
The text was updated successfully, but these errors were encountered: