-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
PERF: concat_compat #52316
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
PERF: concat_compat #52316
Conversation
elif axis == 0: | ||
return obj._concat_same_type(to_concat_eas) | ||
else: | ||
# e.g. DatetimeArray |
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.
Can we get here with EAs with _concat_same_type without the axis keyword e.g. Sparse?
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.
No, we only get here (axis=1) from internals.concat, and there pass ea_compat_axis=True in those cases
Thanks @jbrockmendel |
@jbrockmendel I think there might be typing failures here. Mind taking a look? https://github.com/pandas-dev/pandas/actions/runs/4578025660/jobs/8084134007 |
yep, will make a PR shortly |
Fastpath for all-matching-dtype case.