cudf.DataFrame.convert_dtypes#
- DataFrame.convert_dtypes(infer_objects: bool = True, convert_string: bool = True, convert_integer: bool = True, convert_boolean: bool = True, convert_floating: bool = True, dtype_backend=None) Self [source]#
Convert columns to the best possible nullable dtypes.
If the dtype is numeric, and consists of all integers, convert to an appropriate integer extension type. Otherwise, convert to an appropriate floating type.
All other dtypes are always returned as-is as all dtypes in cudf are nullable.