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

QST: Should the absence of tzdata package affect the performance in any way ? #61218

Open
2 tasks done
sdg002 opened this issue Apr 2, 2025 · 2 comments
Open
2 tasks done
Labels
Needs Info Clarification about behavior needed to assess issue Usage Question

Comments

@sdg002
Copy link

sdg002 commented Apr 2, 2025

Research

  • I have searched the [pandas] tag on StackOverflow for similar questions.

  • I have asked my usage related question on StackOverflow.

Link to question on StackOverflow

https://stackoverflow.com/search?page=3&tab=Relevance&pagesize=30&q=pandas%20AND%20tzdata%20&searchOn=3

Question about pandas

We are on pandas 1.5.3. We are investigating some performance bottlenecks. At this point, we are not sure where the problem lies. However, we have a consistent pattern of observations.

We noticed that when tzdata==2025.2 was uninstalled, there was a severe degradation in performance (> 10x).

Upon further investigations and eliminations, we arrived at the following matrix:

Good perf-1

pandas==2.2.3
tzdata==2025.2

Good perf-2

pandas==1.5.3
tzdata==2025.2

Bad perf

No tzdata

pandas==1.5.3

Any suggestions ?

Is there any logic in any part of Pandas that relies on tzdata ?

Thanks,
Sau

@sdg002 sdg002 added Needs Triage Issue that has not been reviewed by a pandas team member Usage Question labels Apr 2, 2025
@sdg002
Copy link
Author

sdg002 commented Apr 2, 2025

Sorry. SFO will not allow me to ask any more questions.

@mroeschke
Copy link
Member

tzdata is used as an alternative timezone library compared to pytz. It's hard to answer performance implications without knowing what they are.

Note that pandas 1.5 is no longer supported and tzdata is a required dependency as of pandas 2.0

@mroeschke mroeschke added Needs Info Clarification about behavior needed to assess issue and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Info Clarification about behavior needed to assess issue Usage Question
Projects
None yet
Development

No branches or pull requests

2 participants