-
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
pd.dataframe.at won't work in modin #4111
Comments
Hi @cinnqi thanks for reporting! It looks like the error happens at df_record.loc[i,'mainsnaks'] = mainsnaks What is |
yes, I tried both at and loc, and none of them worked. i is a row label indeed and mainsnaks is a list of objects, format below
I am trying to insert the mainsnaks to one indicated datafram cell. Actually, I don't understand why it can work in pandas. |
@cinnqi thanks for describing the data. Could you please also add the line of your code that causes the error? @devin-petersohn I think this might be another case of someone trying to use |
@mvashishtha Yes, it does appear related |
System information
modin.__version__
):0.13Describe the problem
I am trying to insert an object into a cell of data frame, by using pd.dataframe.at(index,'row', object).
it works in pandas but not in modin.
Source code / logs
File "compare_modin.py", line 98, in
df_record.loc[i,'mainsnaks'] = mainsnaks
File "/home/chengxi/.local/lib/python3.8/site-packages/modin/pandas/indexing.py", line 742, in setitem
super(_LocIndexer, self).setitem(
File "/home/chengxi/.local/lib/python3.8/site-packages/modin/pandas/indexing.py", line 412, in setitem
item = self._broadcast_item(row_lookup, col_lookup, item, to_shape)
File "/home/chengxi/.local/lib/python3.8/site-packages/modin/pandas/indexing.py", line 475, in _broadcast_item
raise ValueError(
ValueError: could not broadcast input array from shape (631,) into shape (1, 1)
The text was updated successfully, but these errors were encountered: