Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Mode should be defined if the Series consist of only one object #15714
Comments
|
Thanks. Mind sending a PR with a fix?
FYI, pandas' mode isn't necessarily an aggregation, since it doesn't do any tie breaking. |
TomAugspurger
added Algos Bug Difficulty Novice Effort Low
labels
Mar 17, 2017
TomAugspurger
added this to the
0.20.0
milestone
Mar 17, 2017
jreback
modified the milestone: Next Major Release, 0.20.0
Mar 17, 2017
buyology
added a commit
to buyology/pandas
that referenced
this issue
Mar 20, 2017
|
|
buyology |
44dbbb2
|
jreback
modified the milestone: 0.20.0, Next Major Release
Mar 20, 2017
jreback
modified the milestone: 0.20.0, Next Major Release
Mar 23, 2017
buyology
added a commit
to buyology/pandas
that referenced
this issue
Mar 24, 2017
|
|
buyology |
26db131
|
jreback
modified the milestone: 0.20.0, Next Major Release
Mar 24, 2017
jreback
added a commit
that referenced
this issue
Mar 29, 2017
|
|
buyology + jreback |
de589c2
|
mattip
added a commit
to mattip/pandas
that referenced
this issue
Apr 3, 2017
|
|
buyology + mattip |
548c0a7
|
|
closed by #15744 |
jreback
closed this
Apr 12, 2017
linebp
added a commit
to linebp/pandas
that referenced
this issue
Apr 17, 2017
|
|
buyology + linebp |
53a04cb
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
buyology commentedMar 17, 2017
Code Sample
Problem description
Currently the
modeof a series is not defined if the series consist of only one object. This limits the use of the mode as an aggregation method.Compare this with the behaviour of other libraries, e.g.
scipy:Expected Output
Output of
pd.show_versions()pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 34.3.1
Cython: None
numpy: 1.8.0rc1
scipy: 0.13.0b1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: 1.4.8
patsy: None
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.3.1
openpyxl: 2.3.0-b1
xlrd: 1.0.0
xlwt: None
xlsxwriter: 0.9.3
lxml: 3.7.3
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.1.6
pymysql: None
psycopg2: 2.6.2 (dt dec pq3 ext lo64)
jinja2: 2.9.5
boto: 2.42.0
pandas_datareader: None