pandas.Index.infer_objects
pandas 3.1.1 · Index objects · method
Try a soft dtype conversion on object data without forcing strings to parse as numbers.
Call syntax
Index.infer_objects(copy=True)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 Default True |
bool Control whether data is copied where the API supports that choice. |
Returns
Index