pandas 1.4.2

ParametersRaisesReturns
objects_to_datetime64ns(data: 'np.ndarray', dayfirst, yearfirst, utc=False, errors='raise', require_iso8601: 'bool' = False, allow_object: 'bool' = False, allow_mixed: 'bool' = False)

Parameters

data : np.ndarray[object]
dayfirst : bool
yearfirst : bool
utc : bool, default False

Whether to convert timezone-aware timestamps to UTC.

errors : {'raise', 'ignore', 'coerce'}
require_iso8601 : bool, default False
allow_object : bool

Whether to return an object-dtype ndarray instead of raising if the data contains more than one timezone.

allow_mixed : bool, default False

Interpret integers as timestamps when datetime objects are also present.

Raises

ValueError : if data cannot be converted to datetimes

Returns

result : ndarray

np.int64 dtype if returned values represent UTC timestamps np.datetime64[ns] if returned values represent wall times object if mixed timezones

inferred_tz : tzinfo or None

Convert data to array of timestamps.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /pandas/core/arrays/datetimes.py#2151
type: <class 'function'>
Commit: