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
uses the example DataFrame from #9857.
In [3]: df = pd.DataFrame({'x': [1,2,6], 'y': [2,2,8], 'z':[-5,0,5]}) In [4]: df = df.set_index('z') In [5]: rhs = {'x': 9, 'y': 99} In [6]: df.loc[5] Out[6]: x 6 y 8 Name: 5, dtype: int64 In [7]: df.loc[5] = rhs In [8]: df Out[8]: x y z -5 1 2 0 2 2 5 {u'y': 99, u'x': 9} {u'y': 99, u'x': 9}
The text was updated successfully, but these errors were encountered:
I didn't realize that we supported dictionaries on the RHS of assignments :)
Sorry, something went wrong.
this does an .append(...) with the stuff on the rhs.
.append(...)
Is this documented somewhere?
I can add some docs. I've got a fix for this.
Successfully merging a pull request may close this issue.
uses the example DataFrame from #9857.
The text was updated successfully, but these errors were encountered: