Skip to content

Commit d9b9411

Browse files
author
tp
committed
Polishing NDFrame.astype doc string
1 parent a41eb2f commit d9b9411

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/generic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3610,9 +3610,7 @@ def blocks(self):
36103610
mapping={True: 'raise', False: 'ignore'})
36113611
def astype(self, dtype, copy=True, errors='raise', **kwargs):
36123612
"""
3613-
Cast object to input numpy.dtype.
3614-
3615-
Return a copy when ``copy=True`` (be really careful with this!).
3613+
Cast a pandas object to new dtype ``dtype``.
36163614
36173615
Parameters
36183616
----------
@@ -3621,6 +3619,8 @@ def astype(self, dtype, copy=True, errors='raise', **kwargs):
36213619
the same type. Alternatively, use {col: dtype, ...}, where col is a
36223620
column label and dtype is a numpy.dtype or Python type to cast one
36233621
or more of the DataFrame's columns to column-specific types.
3622+
copy : bool, default True.
3623+
Return a copy when ``copy=True`` (be really careful with this!).
36243624
errors : {'raise', 'ignore'}, default 'raise'.
36253625
Control raising of exceptions on invalid data for provided dtype.
36263626

0 commit comments

Comments
 (0)