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 12800 fixed inconsistent behavior of last_valid_index and first_valid_index #12834

Conversation

gregorylivschitz
Copy link

@sinhrks sinhrks added Bug Indexing Related to indexing on series/frames, not to indexes themselves labels Apr 9, 2016
@@ -336,3 +336,8 @@ def test_first_last_valid(self):

index = frame.last_valid_index()
self.assertEqual(index, frame.index[-6])

def test_empty_first_last(self):
empty_frame = DataFrame()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add the issue number as a comment (and below)

@jreback
Copy link
Contributor

jreback commented Apr 9, 2016

pls add a whatsnew note (bug fixes)

@gregorylivschitz
Copy link
Author

@jreback

I went ahead and added the whats new note and the comments in the bug.
Let me know if there is anything else I have to do and thanks!

@jreback
Copy link
Contributor

jreback commented Apr 11, 2016

thanks!

@jreback jreback closed this in b8ae20e Apr 11, 2016
@jreback jreback added this to the 0.18.1 milestone Apr 11, 2016
@gregorylivschitz gregorylivschitz deleted the inconsistent_series_frames_bug branch April 12, 2016 00:38
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.

inconsistent behavior of series.last_valid_index, and df.last_valid_index when dataframe empty
3 participants