pd.DataFrame.astype
¶
pandas.DataFrame.astype(dtype, copy=True, errors='raise')
Supported Arguments¶
-
dtype
: dict of string column names keys, and Strings/types values. String (string must be parsable bynp.dtype
), Valid type (see types), The following functions: float, int, bool, str- Must be constant at Compile Time
-
copy
: boolean