Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
GroupBy.apply type upcasting regression #3911
Comments
|
Actually not sure this is a regression, here's with 0.11.0:
for some reason making a bar plot of the value column fails in master. i will investigate when i can |
|
is the failure a type error? plotting |
|
Um, really? In this case the resulting plot is totally fine because all of the objects inside are floats. Why not attempt to convert_objects for dtype object and raise if it can't be converted to numeric? |
|
I'm strongly |
|
ok then will change it now |
|
@wesm cpcloud/pandas@fe3f01f if u want to check while waiting for travis... |
|
@wesm also is that the only issue here? not clear to me if there's still a |
|
oh i c. still looks like casting back to original types is an issue |
jreback
referenced
this issue
Jun 15, 2013
Merged
BUG: (GH3911) groupby appying with custom function not converting dtypes of result #3913
jreback
closed this
in #3913
Jun 15, 2013
|
seldom used case, but test and fixed now |
wesm commentedJun 15, 2013
Blocker for 0.11.1. This got broken sometime between 0.11.0 and master; I haven't had time to bisect yet. Essentially, write a mixed type DataFrame and a groupby function that extracts a row. This used to do type inference and convert object back to numeric in the columns of the resulting DataFrame. Didn't have a test so I don't blame anyone for breaking it by accident =)