-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Reindex docs question / clarification #21429
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
Comments
@jreback @jorisvandenbossche : I thought we were still pushing builds of the docs on Travis? |
Failing with https://travis-ci.org/pandas-dev/pandas/jobs/390828331#L2234 till #21397 is merged. |
w.r.t. the original issue, |
@TomAugspurger Thanks for the clarification, that makes sense. I am brand new to pandas, so hadn't been exposed to The reindexing docs all made sense and the examples made things clear, up to that point. I think a couple things threw me off. The first section introduces it as
and
This doesn't indicate that any NaN values wouldn't be filled. The note underneath then goes on to explain why the one original value was not filled (2010-01-03), but says nothing about the last value at the end. It says
which almost implies that (or at least I read it as) the original values will be left alone and all the new indexes will be filled. I think simply adding those two sentences from your response would make it clear. For those who are familiar with the fill concepts, it will seem obvious, but I think it would provide clarity for those who aren't.
Alternatively, perhaps just referencing the fill strategies in the earlier statement would be sufficient. Along those lines, one more clarification... the docs say
Does that mean then that if we were to specify Thanks again for the help. |
From the bottom of the reindex docs here; relevant docs source here:
Problem description
Couldn't find any duplicates during search (but hard to say it isn't out there somewhere).
This is a question as much as anything. It may be my ignorance, or perhaps an oversight in the docs. The last value in the output shows
2010-01-07 NaN
. It was not part of the original dataframe, so based on the note, it seems that it too should be auto-filled like the first 3 values were. I understand why2010-01-03 NaN
was not populated, but it doesn't seem right for the last value. Unless there is something I'm missing.https://pandas-docs.github.io/pandas-docs-travis/
^^
FYI, this link from the issue template is giving a 404
The text was updated successfully, but these errors were encountered: