-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
REG: Regression in explode when column is non string #43802
Conversation
otherwise lgtm |
Now I rememeber why the assertion was there |
prob could add one for all scalar types |
thanks @phofl |
@meeseeksdev backport 1.3.x |
Something went wrong ... Please have a look at my logs. |
Will do as a follow up |
…ing (#43817) Co-authored-by: Patrick Hoefler <61934744+phofl@users.noreply.github.com>
@@ -8201,7 +8201,7 @@ def stack(self, level: Level = -1, dropna: bool = True): | |||
|
|||
def explode( | |||
self, | |||
column: str | tuple | list[str | tuple], | |||
column: Scalar | tuple | list[Scalar | tuple], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we normally use Hashable for index labels. We also have the alias in pandas._typing IndexLabel = Union[Hashable, Sequence[Hashable]]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx. #43834
DataFrame.explode
is failing on scalarint
value. #43314This should cover the issue since the other pr did not make any progress.
Is there a fixture providing all scalar dtypes?