Skip to content

Commit a23eb83

Browse files
authored
for gh-49508 changing Doc for DataFrame.astype (#49556)
* for #49508 changing Doc for DataFrame.astype added the series in input in the doc of DataFrame.astype * up * up2 * up3 * up4 * up5
1 parent e41b6d7 commit a23eb83

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pandas/core/generic.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -6004,11 +6004,12 @@ def astype(
60046004
60056005
Parameters
60066006
----------
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.
60126013
copy : bool, default True
60136014
Return a copy when ``copy=True`` (be very careful setting
60146015
``copy=False`` as changes to values then may propagate to other

0 commit comments

Comments
 (0)