pandas 1.4.2

ParametersReturns

Also returns a pytz.FixedOffset if an array of strings with the same timezone offset is passed and utc=True is not passed. Otherwise, None is returned

Handles datetime.date, datetime.datetime, np.datetime64 objects, numeric, strings

Parameters

values : ndarray of object

date-like objects to convert

errors : str, default 'raise'

error behavior when parsing

dayfirst : bool, default False

dayfirst parsing behavior when encountering datetime strings

yearfirst : bool, default False

yearfirst parsing behavior when encountering datetime strings

utc : bool, default False

indicator whether the dates should be UTC

require_iso8601 : bool, default False

indicator whether the datetime string should be iso8601

allow_mixed : bool, default False

Whether to allow mixed datetimes and integers.

Returns

np.ndarray

May be datetime64[ns] or object dtype

tzinfo or None

Converts a 1D array of date-like values to a numpy array of either:

  1. datetime64[ns] data

  2. datetime.datetime objects, if OutOfBoundsDatetime or TypeError is encountered

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: None#None
type: <class 'builtin_function_or_method'>
Commit: