Skip to content

Commit c2d1702

Browse files
committed
DOC: df.astype example using dictionary (pandas-dev#26990)
1 parent c40836d commit c2d1702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5640,7 +5640,7 @@ def astype(self, dtype, copy=True, errors='raise', **kwargs):
56405640
56415641
Cast col1 to int32 using a dictionary:
56425642
5643-
>>> df.astype({'col1': 'int32'}).dtypes
5643+
>>> df.astype({'col1': 'int32'}).dtypes
56445644
col1 int32
56455645
col2 int64
56465646
dtype: object

0 commit comments

Comments
 (0)