-
Notifications
You must be signed in to change notification settings - Fork 651
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
pd.concat with Dictionary argument throws ValueError #1631
Comments
devin-petersohn
added
bug 🦗
Something isn't working
and removed
question ❓
Questions about Modin
labels
Jun 18, 2020
Hi @vidapura, thanks for posting! This looks like a bug in Modin related to dictionary concatenation. We will get this fixed. As a temporary workaround, you can slightly change your code to this: import modin.pandas as pd
df_wave1 = pd.read_csv("Survey_1.csv")
df_wave2 = pd.read_csv("Survey_Cleaned_2.csv")
df_wave3 = pd.read_csv("Survey_Cleaned_3.csv")
# surveys = {'1': df_wave1, '2': df_wave2, '3': df_wave3, }
df_wave1.index = pd.MultiIndex.from_tuples([("1", i) for i in df_wave1.index])
df_wave2.index = pd.MultiIndex.from_tuples([("2", i) for i in df_wave2.index])
df_wave3.index = pd.MultiIndex.from_tuples([("3", i) for i in df_wave3.index])
surveys = [df_wave1, df_wave2, df_wave3]
df_all = pd.concat(surveys, sort=False) |
devin-petersohn
changed the title
ValueError: ('cannot concatenate object of type "{0}"; only pandas.Series, pandas.DataFrame, and modin.pandas.DataFrame objs are valid', <class 'str'>)
pd.concat with Dictionary argument throws ValueError
Jun 18, 2020
Ahh brilliant! |
devin-petersohn
added a commit
to devin-petersohn/modin
that referenced
this issue
Jul 24, 2020
Signed-off-by: Devin Petersohn <devin.petersohn@gmail.com>
6 tasks
aregm
pushed a commit
that referenced
this issue
Jul 24, 2020
aregm
pushed a commit
to aregm/modin
that referenced
this issue
Sep 16, 2020
…din-project#1795) Signed-off-by: Devin Petersohn <devin.petersohn@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Just installed modin for the first time.. and I'm failing at the first hurdle.
Could anyone please take a look and tell me if they can spot something obvious I'm doing wrong?
I'm using a macbook with 10.15.4 of the OS.
python 3
Installed modin using:
pip install modin[ray]
Now I'm trying to run code that worked with pandas:
But I'm getting the error:
I don't have pandas imported into the notebook.
I have restarted the kernel etc.
Any help would be greatly appreciated.
Thanks
The text was updated successfully, but these errors were encountered: