Open davetapley opened 2 weeks ago
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?
Feature Type
[X] 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
withpandas
, 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
https://github.com/pandas-dev/pandas/blob/2a10e04a099d5f1633abcdfbb2dd9fdf09142f8d/pandas/_libs/tslibs/timezones.pyx#L25
https://github.com/pandas-dev/pandas/blob/2a10e04a099d5f1633abcdfbb2dd9fdf09142f8d/pandas/_libs/tslibs/timezones.pyx#L41
Alternative Solutions
N/A
Additional Context