Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
SeriesGroupby.nunique raises an IndexError on empty Series #12553
Comments
|
ok, pull-requests are welcome to fix |
jreback
added Bug Groupby Difficulty Novice Effort Low
labels
Mar 7, 2016
jreback
added this to the
0.18.1
milestone
Mar 7, 2016
thanasis2028
commented
Mar 7, 2016
|
Is this supposed to return 0 or an empty Series? I am fixing it right now but it seems awkward returning 0, while other calls of the nunique() return Series objects. |
|
equiv to this, an empty Series should be returned. You should only do that null checking (the line where it errors), if the series has len
|
thanasis2028
commented
Mar 7, 2016
|
Thanks, made a pull request:
|
thanasis2028
referenced
this issue
Mar 8, 2016
Closed
BUG: SeriesGroupby.nunique raises an IndexError on empty Series #12553 #12560
jreback
modified the milestone: 0.18.1, 0.18.2
Apr 25, 2016
jreback
referenced
this issue
May 20, 2016
Closed
nunique Error when called by groupby from an empty dataframe #13239
thanasis2028
added a commit
to thanasis2028/pandas
that referenced
this issue
Jun 1, 2016
|
|
thanasis2028 |
744e537
|
jorisvandenbossche
modified the milestone: Next Major Release, 0.19.0
Sep 1, 2016
mroeschke
added a commit
to mroeschke/pandas
that referenced
this issue
Nov 17, 2016
|
|
mroeschke |
e41aeb7
|
mroeschke
added a commit
to mroeschke/pandas
that referenced
this issue
Nov 27, 2016
|
|
mroeschke |
4185fcc
|
mroeschke
added a commit
to mroeschke/pandas
that referenced
this issue
Nov 30, 2016
|
|
mroeschke |
7214e2e
|
mroeschke
added a commit
to mroeschke/pandas
that referenced
this issue
Nov 30, 2016
|
|
mroeschke |
ed12ad0
|
mroeschke
referenced
this issue
Nov 30, 2016
Closed
BUG: Error upon Series.Groupby.nunique with empty Series (#12553) #14770
mroeschke
added a commit
to mroeschke/pandas
that referenced
this issue
Dec 1, 2016
|
|
mroeschke |
40505bb
|
jreback
modified the milestone: 0.19.2, Next Major Release
Dec 4, 2016
jreback
closed this
in c0e13d1
Dec 4, 2016
jorisvandenbossche
added a commit
that referenced
this issue
Dec 15, 2016
|
|
mroeschke + jorisvandenbossche |
36dad84
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixman commentedMar 7, 2016
Code Sample, a copy-pastable example if possible
Expected Output
0output of
pd.show_versions()