Skip to content

Check for size=0 before setting item #10379

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

Merged

Conversation

rekcahpassyla
Copy link
Contributor

This is a second try at fixing #10193; the first try is in #10194. There is some useful discussion in that PR, so I didn't want to clobber that- not sure of the etiquette of multiple PRs for the same bug??

The discussion around setting values in views on #10194 is separate from the bug itself- I find that setting an item on a newly-constructed empty series with a frequency (thus, no views are involved) raises the same error.

I couldn't cherry pick from my old branch easily as some commits contained more code than is necessary for this set of changes, so I have done a new one.

@jreback jreback added Bug Indexing Related to indexing on series/frames, not to indexes themselves labels Jun 18, 2015
@jreback jreback added this to the 0.17.0 milestone Jun 18, 2015
@jreback
Copy link
Contributor

jreback commented Jun 18, 2015

can you add a release note

@rekcahpassyla rekcahpassyla force-pushed the empty_series_with_freq_setitem2 branch from 62bae05 to 7da7c97 Compare June 18, 2015 13:09
@rekcahpassyla
Copy link
Contributor Author

@jreback Release note added

@jreback
Copy link
Contributor

jreback commented Jun 18, 2015

this is fine. ping on green.

@rekcahpassyla
Copy link
Contributor Author

@jreback It is green

jreback added a commit that referenced this pull request Jun 18, 2015
…etitem2

Check for size=0 before setting item
@jreback jreback merged commit d8a2f30 into pandas-dev:master Jun 18, 2015
@jreback
Copy link
Contributor

jreback commented Jun 18, 2015

@rekcahpassyla thanks for the fix!

@rekcahpassyla
Copy link
Contributor Author

Most welcome!

@rekcahpassyla rekcahpassyla deleted the empty_series_with_freq_setitem2 branch June 18, 2015 15:43
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

Successfully merging this pull request may close these issues.

2 participants