Skip to content

REF: use concat_compat in union_with_duplicates #44125

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

Merged
merged 1 commit into from
Oct 21, 2021

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

@jreback
Copy link
Contributor

jreback commented Oct 20, 2021

wow

any perf implications?

@jbrockmendel
Copy link
Member Author

any perf implications?

we're going to take a small hit bc isinstance(obj, ABCFoo) is slower than isinstance(obj, Foo), and the runtime import of ensure_wrapped_if_datetimelike (i guess could move that to dtypes.cast). the union cases we'll take a hit in non-EA cases bc concat_compat is slower than np.concatenate, but for EA cases we ought to do better

@jreback
Copy link
Contributor

jreback commented Oct 21, 2021

any perf implications?

we're going to take a small hit bc isinstance(obj, ABCFoo) is slower than isinstance(obj, Foo), and the runtime import of ensure_wrapped_if_datetimelike (i guess could move that to dtypes.cast). the union cases we'll take a hit in non-EA cases bc concat_compat is slower than np.concatenate, but for EA cases we ought to do better

sounds good about moving that, but this looks fine.

@jreback jreback added this to the 1.4 milestone Oct 21, 2021
@jreback jreback added Clean Reshaping Concat, Merge/Join, Stack/Unstack, Explode labels Oct 21, 2021
@jreback jreback merged commit f3f90c3 into pandas-dev:master Oct 21, 2021
@jbrockmendel jbrockmendel deleted the ref-concat-imports branch October 21, 2021 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants