Skip to content
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

Avoid importing Pandas until we actually use it. #1825

Merged
merged 1 commit into from
Sep 8, 2023
Merged

Conversation

thetorpedodog
Copy link
Contributor

Importing Pandas takes a significant amount of time; nearly half a second in UDFs. Previously, we imported it eagerly if it was present, even though outside of a couple functions it was only used for type annotations. This change ensures that we only import it exactly when we actually use it.

Importing Pandas takes a significant amount of time; nearly half
a second in UDFs. Previously, we imported it eagerly if it was present,
even though outside of a couple functions it was only used for type
annotations. This change ensures that we only import it exactly when
we actually use it.
Copy link
Member

@ihnorton ihnorton left a comment

Choose a reason for hiding this comment

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

Thanks

@ihnorton ihnorton merged commit f3f5102 into dev Sep 8, 2023
37 checks passed
@ihnorton ihnorton deleted the lazy-import branch September 8, 2023 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants