Skip to content

Conversation

nickeubank
Copy link
Contributor

Closes issue: #9684

Returns empty object even if all entries are missing.

@nickeubank
Copy link
Contributor Author

Sorry, don't quite follow. Would you mind elaborating?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v = [ v for v in values if v is not None ]
if not v:
    return DataFrame()

@nickeubank
Copy link
Contributor Author

OK -- I'd then need to extract the first item from the list below that. That still preferable?

@jreback
Copy link
Contributor

jreback commented Mar 19, 2015

@nickeubank hmm, maybe leave it the original (and put in a try except for StopIteration like you did).
then it doesn't materialzie it

@jreback jreback added Groupby Error Reporting Incorrect or improved errors from pandas labels Mar 19, 2015
@jreback jreback added this to the 0.16.1 milestone Mar 19, 2015
@jreback
Copy link
Contributor

jreback commented Mar 20, 2015

whats new is now available for 0.16.1 5ebf521

@jreback
Copy link
Contributor

jreback commented Mar 25, 2015

pls add a test and a mention in v0.16.1 whatsnew.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use backticks around groupby.apply and reprase as bit: "would raise if the return value of the user passed function was None "

@jreback
Copy link
Contributor

jreback commented Apr 28, 2015

merged via 990972b

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Error Reporting Incorrect or improved errors from pandas Groupby

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants