Skip to content

ENH: Explicitly opt out of pytz support #60025

Closed
@davetapley

Description

@davetapley

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

pytz = import_optional_dependency("pytz", errors="ignore")

cdef tzinfo utc_pytz = pytz.UTC if pytz else None

Alternative Solutions

N/A

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions