pandas.Series.infer_objects
pandas 3.1.1 · Series and accessors · method
Try a soft dtype conversion on object data without forcing strings to parse as numbers.
Call syntax
Series.infer_objects(copy=…)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted 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