pandas 1.4.2

ParametersReturnsBackRef

Parameters

objects : ndarray[object]

Array of object elements to convert.

try_float : bool, default False

If an array-like object contains only float or NaN values is encountered, whether to convert and return an array of float dtype.

safe : bool, default False

Whether to upcast numeric type (e.g. int cast to float). If set to True, no upcasting will be performed.

convert_datetime : bool, default False

If an array-like object contains only datetime values or NaT is encountered, whether to convert and return an array of M8[ns] dtype.

convert_timedelta : bool, default False

If an array-like object contains only timedelta values or NaT is encountered, whether to convert and return an array of m8[ns] dtype.

convert_period : bool, default False

If an array-like object contains only (homogeneous-freq) Period values or NaT, whether to convert and return a PeriodArray.

convert_interval : bool, default False

If an array-like object contains only Interval objects (with matching dtypes and closedness) or NaN, whether to convert to IntervalArray.

convert_to_nullable_integer : bool, default False

If an array-like object contains only integer values (and NaN) is encountered, whether to convert and return an IntegerArray.

dtype_if_all_nat : np.dtype, ExtensionDtype, or None, default None

Dtype to cast to if we have all-NaT.

Returns

np.ndarray or ExtensionArray

Array of converted object values to more specific dtypes if applicable.

Type inference function-- convert object array to proper dtype

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

pandas.core.strings.object_array.ObjectStringArrayMixin._str_map pandas._libs.lib.map_infer_mask

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: