Closed
Description
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
I wish I could explicitly opt out of using pytz
with pandas
, even if another library (APScheduler in my case) uses it as a dependency.
APScheduler is due to also drop pytz
requirement in future, but I'd like to get ahead now.
Feature Description
Patch here to
pandas/pandas/_libs/tslibs/timezones.pyx
Line 25 in 2a10e04
pandas/pandas/_libs/tslibs/timezones.pyx
Line 41 in 2a10e04
Alternative Solutions
N/A
Additional Context
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
rhshadrach commentedon Oct 13, 2024
Thanks for the request. From
https://pandas.pydata.org/docs/dev/whatsnew/v3.0.0.html#pytz-now-an-optional-dependency
it is my understanding that in 3.0 you should not be getting pytz objects unless you are explicitly using them. So I'm not sure what it'd mean to "explicitly opt out of pytz". Can you clarify?
davetapley commentedon May 8, 2025
@rhshadrach sorry I missed this.
That sounds like what I need, but I don't see Pandas 3? Is it still beta?Nvm found it: https://pandas.pydata.org/docs/getting_started/install.html#installing-the-development-version-of-pandas
rhshadrach commentedon May 20, 2025
It seems to me there is nothing more to do here. @davetapley - if you disagree, please comment as to why.