File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -6004,11 +6004,12 @@ def astype(
6004
6004
6005
6005
Parameters
6006
6006
----------
6007
- dtype : data type, or dict of column name -> data type
6008
- Use a numpy.dtype or Python type to cast entire pandas object to
6009
- the same type. Alternatively, use {col: dtype, ...}, where col is a
6010
- column label and dtype is a numpy.dtype or Python type to cast one
6011
- or more of the DataFrame's columns to column-specific types.
6007
+ dtype : str, data type, Series or Mapping of column name -> data type
6008
+ Use a str, numpy.dtype, pandas.ExtensionDtype or Python type to
6009
+ cast entire pandas object to the same type. Alternatively, use a
6010
+ mapping, e.g. {col: dtype, ...}, where col is a column label and dtype is
6011
+ a numpy.dtype or Python type to cast one or more of the DataFrame's
6012
+ columns to column-specific types.
6012
6013
copy : bool, default True
6013
6014
Return a copy when ``copy=True`` (be very careful setting
6014
6015
``copy=False`` as changes to values then may propagate to other
You can’t perform that action at this time.
0 commit comments