Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
BUG: window function count should count anything non-null #12541
Comments
|
yes that looks right. anything break if you do that? |
jreback
added Missing-data Algos
labels
Mar 7, 2016
jreback
added this to the
0.18.1
milestone
Mar 7, 2016
jreback
added Difficulty Intermediate Effort Low
labels
Mar 7, 2016
|
I was going to help on this during my lunch, but it looks like this causes a bunch of tests to fail in test_window.py since they expect floats. Not sure if the tests should just be coerced to expect int - I can't think of a case where a count should be a float. |
|
@MasonGallo the tests need to be changed as well, for |
This was referenced Mar 7, 2016
|
For the record, can we state why signed int is preferred over unsigned int? |
|
we could just use It would probably work / be ok. |
|
So for consistency make this return ints. We can always revisit the |
jreback
referenced
this issue
Apr 8, 2016
Closed
Bug when combining .groupby() apply with .expanding() apply #12829
|
hmm, anyone want to do this PR? |
|
I'm quite busy for the next week, but I'll take a look afterwards if someone doesn't beat me to it |
jreback
modified the milestone: 0.18.1, 0.18.2
Apr 26, 2016
jorisvandenbossche
modified the milestone: 0.20.0, 0.19.0
Sep 1, 2016
|
Hi guys, I've applied the fix suggested by @kawochen and added a specific test for that (cf. master...mralgos:gh12541). |
|
@mralgos if you want to put up a PR that would be great |
mralgos
referenced
this issue
Jan 23, 2017
Closed
Fix bug in window function count should count anything non-null #15196
jreback
closed this
in 3ac83eb
Jan 24, 2017
AnkurDedania
added a commit
to AnkurDedania/pandas
that referenced
this issue
Mar 21, 2017
|
|
mralgos + AnkurDedania |
94d02bc
|
kawochen commentedMar 6, 2016
Right now
np.Infand non-numeric types are not counted.Code Sample, a copy-pastable example if possible
Expected Output
output of
pd.show_versions()I think it can be patched, together with #12538, by