Skip to content

Commit 554472f

Browse files
jschendeljreback
authored andcommitted
DOC: Modify astype(*, copy=False) example (#18865)
1 parent c98e3ef commit 554472f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4343,7 +4343,7 @@ def astype(self, dtype, copy=True, errors='raise', **kwargs):
43434343
pandas object may propagate changes:
43444344
43454345
>>> s1 = pd.Series([1,2])
4346-
>>> s2 = s1.astype('int', copy=False)
4346+
>>> s2 = s1.astype('int64', copy=False)
43474347
>>> s2[0] = 10
43484348
>>> s1 # note that s1[0] has changed too
43494349
0 10

0 commit comments

Comments
 (0)