Skip to content
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

BUG: cannot insert/delete to non-unique columns #3679

Closed
jreback opened this issue May 22, 2013 · 2 comments · Fixed by #3683
Closed

BUG: cannot insert/delete to non-unique columns #3679

jreback opened this issue May 22, 2013 · 2 comments · Fixed by #3683

Comments

@jreback
Copy link
Contributor

jreback commented May 22, 2013

This currently breaks

In [1]: df = DataFrame([[1,1,1,5],[1,1,2,5],[2,1,3,5]],columns=['foo','bar','foo','hello'])

In [2]: df['string'] = 'bar'

In [3]: df
IndexError: ('index out of bounds', u'occurred at index hello')
@cpcloud
Copy link
Member

cpcloud commented May 22, 2013

this is a ref_locs problem I think. the new block is not added to ref_locs.

@jreback
Copy link
Contributor Author

jreback commented May 22, 2013

I am almost done
it's a bit non trivial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants