pandas.DataFrame.infer_objects

pandas 3.1.1 · DataFrame · method

Try a soft dtype conversion on object data without forcing strings to parse as numbers.

Call syntax

DataFrame.infer_objects(copy=…)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
copy Optional
Positional or keyword
bool

Control whether data is copied where the API supports that choice.

Returns

same type as input object