MCPcopy
hub / github.com/pandas-dev/pandas / to_datetime

Function to_datetime

pandas/core/tools/datetimes.py:643–654  ·  view source on GitHub ↗
(
    arg: DatetimeScalar,
    errors: DateTimeErrorChoices = ...,
    dayfirst: bool = ...,
    yearfirst: bool = ...,
    utc: bool = ...,
    format: str | None = ...,
    exact: bool = ...,
    unit: str | None = ...,
    origin=...,
    cache: bool = ...,
)

Source from the content-addressed store, hash-verified

641
642@overload
643def to_datetime(
644 arg: DatetimeScalar,
645 errors: DateTimeErrorChoices = ...,
646 dayfirst: bool = ...,
647 yearfirst: bool = ...,
648 utc: bool = ...,
649 format: str | None = ...,
650 exact: bool = ...,
651 unit: str | None = ...,
652 origin=...,
653 cache: bool = ...,
654) -> Timestamp: ...
655
656
657@overload

Callers 15

time_nanosec_int64Method · 0.90
time_nanosec_uint64Method · 0.90
time_nanosec_float64Method · 0.90
time_sec_uint64Method · 0.90
time_sec_int64Method · 0.90
time_sec_float64Method · 0.90
time_format_YYYYMMDDMethod · 0.90
time_iso8601Method · 0.90
time_iso8601_nosepMethod · 0.90
time_iso8601_formatMethod · 0.90

Calls 10

SeriesClass · 0.90
_adjust_to_originFunction · 0.85
_maybe_cacheFunction · 0.85
_convert_and_box_cacheFunction · 0.85
tz_convertMethod · 0.45
tz_localizeMethod · 0.45
mapMethod · 0.45
_constructorMethod · 0.45
arrayMethod · 0.45