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
Pandas allows assignment to DataFrame.index
DataFrame.index
>>> import pandas as pd >>> df = pd.DataFrame({'a': [1, 2, 3]}) >>> df.index = ['a', 'b', 'c'] >>> df a a 1 b 2 c 3
whereas Koalas seems unable.
>>> import databricks.koalas as ks >>> df = ks.DataFrame({'a': [1, 2, 3]}) >>> df.index = ['a', 'b', 'c'] Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: can't set attribute
The text was updated successfully, but these errors were encountered:
This seems to be difficult because the operations between different DataFrames are dependent on index.
df.index and ['a', 'b', 'c'] are different datasets so we should figure out a way to join both by a certain axis column.
df.index
['a', 'b', 'c']
Sorry, something went wrong.
HyukjinKwon
No branches or pull requests
Pandas allows assignment to
DataFrame.index
whereas Koalas seems unable.
The text was updated successfully, but these errors were encountered: