-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Some interesting behavior from .groupby().apply( .to_records() ) #18930
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
pls show a copy pastable example |
|
I had some time this morning so I looked at this. Here's what I found out. This looks like the line where things head south. Line 248 in ee9c7e9
The successful line below has name = None and the line that errors has a name = ['B', 'C'] ps. swapping out |
hmm, it maybe that the rec-array is not handled correctly. |
Here's what I'm thinking Modify the Maybe something like the following which fixes this issue and all current tests in Any feedback?
|
NO. don't specifically deal with recarrays, you can possibly handle an array separaly though (recarray is a sub-class). |
Hi Jeff, thanks for the quick reply. Let me attempt to add some context. I was trying to follow the existing logic found here
|
Hi @zfrenchee probably above mine too :-) but yes, it's typical to add tests to cover additions. Thanks for submitting this by the way. |
Hey, are there any news regarding this issue? Currently, I'm facing is with this code that is raising I haven't found a solution for that. |
I'm having the same issue raises |
Having same issue here :( with pandas 1.3.5 |
Uh oh!
There was an error while loading. Please reload this page.
Why is it that
throws:
TypeError: Series.name must be a hashable type
whileworks?
The text was updated successfully, but these errors were encountered: