Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ENH: Explicitly opt out of pytz support #60025

Copy link
Copy link
Open
@davetapley

Description

@davetapley
Issue body actions

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

    Labels

    EnhancementNeeds InfoClarification about behavior needed to assess issueClarification about behavior needed to assess issueTimezonesTimezone data dtypeTimezone data dtype

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.