Skip to content

TST/BUG: Improve error handling when parsing iso 8601 strings #8910

Closed
@broessli

Description

@broessli

xref #8832

Parsing of datetime strings ending with Z0or Z00should raise (this is currently only the case with Z0).
This is due to the fact that the parser in np_datetime_strings.c cannot raise its own errors since in tslib.pyx, function convert_ts_tsobject(), any ValueError is catched and then a fallback external parser (dateutil) is called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DatetimeDatetime data dtypeError ReportingIncorrect or improved errors from pandasTimezonesTimezone data dtype

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions