-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Apply on selected columns of a groupby object - stopped working with 0.18.1 #13568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@tpietruszka not EVERYTHING is tested. If its a regression then obviously its not. In practice you would never use Correctly, do this.
|
@jreback Anyway, I was assuming that reporting problems - however small - is a helpful thing. It seems this one was taken as an offence of some kind - that obviously was not my intention. Regards, |
@tpietruszka No, it is certainly not an offence, we highly appreciate bug reports! (and yours was very clear and nicely reproducible, thanks for that) |
@tpietruszka It's fixed in master and so will be fixed in the next release. Thanks again for reporting! |
Code Sample
Works fine on 0.18.0.
On 0.18.1 throws:
Expected Output
(some other random numbers)
Comment
With 0.18.1 update, some piece of my code stopped working, in a quite surprising way.
The code is easy to fix - just by removing [['C', 'D']] and applying on the whole groupby object.
Nevertheless, its a regression in a point release and I think someone else may run into the same problem.
I am guessing that pandas is trying to generate a name for the result series based on the column list - unfortunately I cannot investigate further right now.
output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-24-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: None
pip: 8.1.2
setuptools: 24.0.2
Cython: None
numpy: 1.11.1
scipy: None
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.5.3
pytz: 2016.4
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: