Skip to content

Commit

Permalink
NDFrame.astype doc string, adding 'See also' part
Browse files Browse the repository at this point in the history
  • Loading branch information
tp committed Aug 9, 2017
1 parent b366925 commit 43e2760
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3677,6 +3677,10 @@ def astype(self, dtype, copy=True, errors='raise', **kwargs):
1 2
dtype: category
Categories (2, int64): [1, 2]
See also
--------
numpy.ndarray.astype : Cast a numpy array to a specified type.
"""
if is_dict_like(dtype):
if self.ndim == 1: # i.e. Series
Expand Down

0 comments on commit 43e2760

Please sign in to comment.