Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Inconsistency, NaT included in result of groupby method first but not NaN #10590
Comments
|
hmm, @sinhrks I thought this was fixed? |
jreback
added Bug Timeseries Groupby Missing-data
labels
Jul 15, 2015
jreback
added this to the
0.17.0
milestone
Jul 15, 2015
|
I remember some issues when |
|
prob needs some adjustment for comparison vs iNaT in the first/last (though i thought it was there) |
|
Confirmed
|
|
@sinhrks :) I see. Well, I have started to research GitHub and the Pandas source code a bit but right now I unfortunately don't have very much time available and waiting for me could require patience. |
larvian
referenced
this issue
Jul 20, 2015
Merged
BUG: Fix issue with incorrect groupby handling of NaT #10625
larvian
added a commit
to larvian/pandas
that referenced
this issue
Jul 26, 2015
|
|
larvian |
f7f030e
|
jreback
modified the milestone: Next Major Release, 0.17.0
Sep 1, 2015
jreback
added the
Prio-medium
label
Sep 1, 2015
larvian
added a commit
to larvian/pandas
that referenced
this issue
Sep 2, 2015
|
|
larvian |
9c2d1a6
|
jreback
modified the milestone: 0.17.0, Next Major Release
Sep 2, 2015
jreback
closed this
in #10625
Sep 3, 2015
nickeubank
added a commit
to nickeubank/pandas
that referenced
this issue
Sep 29, 2015
|
|
larvian + nickeubank |
0b0469a
|
larvian commentedJul 15, 2015
NaTis included in result ofgroupbymethodfirstwhileNaN. I am expecting that first should skip bothNaNandNaTand include the first value wherepandas.isnullis False.Demonstration of the inconsistency. (note that both
NaTandNaNin the data frame are produced bynp.nan, the difference is that the d_t column contains date values).Resulting data frame:
Grouping this data frame on the
IXcolumn and executing thefirstmethod results in this data frame which shows the inconsistency between thed_tandnumcolumns.Resulting dataframe: