-
Notifications
You must be signed in to change notification settings - Fork 653
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
Add multiple columns to dataframe: Object type error. #4247
Comments
@iisri-vu thank you for reporting the issue! I can't see how you initialize import modin.pandas as pd
df = pd.DataFrame({"a": [1]})
df.loc[:, "b"] = 2 I get a stack trace ending with Show stack trace
whereas pandas will add the new column
This is a Duplicate of #3764. Please follow that issue for the fix. |
Duplicate of #3764 |
Thank you, |
No, there's no nightly build. You'll have to pull the latest source code from github after the fix. |
@mvashishtha that's not completely accurate. @iisri-vu You can pip install directly from the latest github by following the instructions here: https://modin.readthedocs.io/en/stable/getting_started/installation.html#installing-from-the-github-master-branch |
There's still a bug in the newer version. We can't create multiple columns or add columns using this method. |
Thanks for the fast response. This library will be a great one when we have these features in place. |
System information
modin.__version__
): 0.13.2cola = 1
colb = 2
colc = 5
columns= ['a', 'b', 'c']
df.loc[df['userid'].values == id, columns] = cola, colb, colc
Describe the problem
I get an error running the above code.
KeyError(array(['a'], dtype='<U6'))
Source code / logs
The text was updated successfully, but these errors were encountered: