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: pandas.cut and negative values #14652
Comments
|
hmm, that does look wrong. welcome for you to have a look! |
jreback
added Bug Difficulty Novice Effort Low Groupby Reshaping
labels
Nov 15, 2016
jreback
added this to the
Next Major Release
milestone
Nov 15, 2016
|
@luca-s perfect. if you'd like to do a PR would be great. |
jreback
changed the title from
BUG (?) pandas.cut and negative bins to BUG: pandas.cut and negative values
Nov 15, 2016
luca-s
added a commit
to luca-s/pandas
that referenced
this issue
Nov 15, 2016
|
|
luca-s |
2db0c7a
|
luca-s
added a commit
to luca-s/pandas
that referenced
this issue
Nov 16, 2016
|
|
luca-s |
fdc55b9
|
jreback
modified the milestone: 0.19.2, Next Major Release
Nov 17, 2016
jreback
closed this
in 2fc0c68
Nov 17, 2016
amolkahat
added a commit
to amolkahat/pandas
that referenced
this issue
Nov 26, 2016
|
|
luca-s + amolkahat |
483fc79
|
jorisvandenbossche
added a commit
to jorisvandenbossche/pandas
that referenced
this issue
Dec 14, 2016
|
|
luca-s + jorisvandenbossche |
8e31489
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
luca-s commentedNov 14, 2016
•
edited
Here is an example of pandas.cut ran on a pandas.Series with only one positive element and then on a pandas.Series with only one negative element. In the second scenario pandas.cut is not able to insert the single value on the only one bin.
I might be wrong but I expected pandas.cut to behave on negative values the same as with positive
values.
A small, complete example of the issue
Expected Output
Output of
pd.show_versions()pandas: 0.18.1
nose: 1.3.1
pip: 1.5.4
setuptools: 28.0.0
Cython: 0.20.1post0
numpy: 1.11.1
scipy: 0.18.0
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.4.8
patsy: 0.4.1
dateutil: 2.5.3
pytz: 2016.6.1
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.999
httplib2: 0.8
apiclient: None
sqlalchemy: 1.0.14
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: 0.2.1