Skip to content

REGR: indexing with dictionary elements #10219

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

Closed
jreback opened this issue May 27, 2015 · 6 comments
Closed

REGR: indexing with dictionary elements #10219

jreback opened this issue May 27, 2015 · 6 comments
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves

Comments

@jreback
Copy link
Contributor

jreback commented May 27, 2015

xref #9877

regression from 0.16.0

df = pd.DataFrame(columns=['A','B'])
df.ix['test1', 'A'] = dict({'1':'test2'})
@jreback jreback added Indexing Related to indexing on series/frames, not to indexes themselves Regression Functionality that used to work in a prior pandas version labels May 27, 2015
@jreback jreback added this to the 0.17.0 milestone May 27, 2015
@jreback
Copy link
Contributor Author

jreback commented May 27, 2015

@cpcloud

@jreback
Copy link
Contributor Author

jreback commented Jun 9, 2015

@cpcloud if you can have a look

@jreback jreback modified the milestones: Next Major Release, 0.17.0 Aug 15, 2015
@jreback
Copy link
Contributor Author

jreback commented Aug 15, 2015

@cpcloud ?

@jreback jreback modified the milestones: 0.17.0, Next Major Release Aug 15, 2015
@jreback
Copy link
Contributor Author

jreback commented Aug 20, 2015

@cpcloud if you have a chance

@oguzhanogreden
Copy link
Contributor

This issue is still present:

df = pd.DataFrame(columns=['A','B'])
df.loc['test1', 'A'] = dict({'1':'test2'})

I'll try to tackle this soon. A reasonable solution seems like the following:

  • if the indexer points to one cell, store dict,
  • otherwise follow dictionary assignment behavior defined here.

@mroeschke mroeschke added the Bug label May 11, 2020
@mroeschke mroeschke removed the Regression Functionality that used to work in a prior pandas version label Apr 18, 2021
@mroeschke mroeschke removed this from the Contributions Welcome milestone Oct 13, 2022
@mroeschke
Copy link
Member

Looks like ix is removed now so not sure if this is an issue anymore so closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

No branches or pull requests

5 participants