Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Unexpected string->float conversion in DataFrame.groupby().apply() #15421
Comments
jorisvandenbossche
closed this
Feb 16, 2017
jorisvandenbossche
added Bug Duplicate
labels
Feb 16, 2017
jorisvandenbossche
added this to the
No action
milestone
Feb 16, 2017
gwpdt
referenced
this issue
Mar 14, 2017
Closed
BUG: Group-by numeric type-coercion with datetime #15680
gwpdt
added a commit
to gwpdt/pandas
that referenced
this issue
Mar 16, 2017
|
|
gwpdt |
e1ed104
|
jreback
modified the milestone: 0.20.0, No action
Mar 16, 2017
jreback
added a commit
that referenced
this issue
Mar 16, 2017
|
|
gwpdt + jreback |
37e5f78
|
AnkurDedania
added a commit
to AnkurDedania/pandas
that referenced
this issue
Mar 21, 2017
|
|
gwpdt + AnkurDedania |
7d3333c
|
mattip
added a commit
to mattip/pandas
that referenced
this issue
Apr 3, 2017
|
|
gwpdt + mattip |
0c2afdc
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yegulalp commentedFeb 16, 2017
•
edited
Code Sample, a copy-pastable example if possible
Problem description
groupby.apply() does an unexpected conversion from string to float for column 'B' in the example above. The bug is triggered only when both of the following happen:
Expected Output
Output of
pd.show_versions()INSTALLED VERSIONS
commit: None
python: 2.7.13.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.11.3
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.5.1
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: 1.2.0
tables: 3.2.2
numexpr: 2.6.1
matplotlib: 1.5.1
openpyxl: 2.4.0
xlrd: 1.0.0
xlwt: 1.1.2
xlsxwriter: 0.9.6
lxml: 3.7.2
bs4: 4.5.3
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.1.4
pymysql: None
psycopg2: None
jinja2: 2.8.1
boto: 2.45.0
pandas_datareader: 0.2.1