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

BUG: Importing Pandas takes 30 seconds #58820

Closed
2 of 3 tasks
carbon-starlight opened this issue May 24, 2024 · 1 comment
Closed
2 of 3 tasks

BUG: Importing Pandas takes 30 seconds #58820

carbon-starlight opened this issue May 24, 2024 · 1 comment
Labels
Bug Needs Triage Issue that has not been reviewed by a pandas team member

Comments

@carbon-starlight
Copy link

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

print('Importing pandas...')
timestamp1 = time.time()
import pandas as pd
print(f"Importing took {time.time() - timestamp1}{' f#cking' if time.time() - timestamp1 > 10 else ''} seconds")

Issue Description

It takes around 30 seconds to import (installed) pandas on my old netbook and 18 seconds on my modern gaming laptop. Sometimes importing pandas doesn't even finish (it prints "Importing pandas", struggles for around 50 seconds and returnes a ModuleNotFoundError: No module named 'pandas' error).

All other libraries (except openmeteo_requests that also struggles this way but in a lighter fashion) are being imported just fine.

Expected Behavior

Pandas should be imported.

Installed Versions

Pandas installed yesterday, it should be of the latest version in pip

@carbon-starlight carbon-starlight added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels May 24, 2024
@mroeschke
Copy link
Member

Thanks for the report. Investigation around this issue is going on in #53488 so closing in favor of that issue. If you have any insights why this is happening happy to have that feedback in that issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Issue that has not been reviewed by a pandas team member
Projects
None yet
Development

No branches or pull requests

2 participants