Skip to content

Commit b7b1311

Browse files
Fix doctest dtype
1 parent 4c2b3c5 commit b7b1311

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/core/generic.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7543,11 +7543,11 @@ def clip(
75437543
75447544
>>> t = pd.Series([2, -4, -1, 6, 3])
75457545
>>> t
7546-
0 2
7547-
1 -4
7548-
2 -1
7549-
3 6
7550-
4 3
7546+
0 2.0
7547+
1 -4.0
7548+
2 -1.0
7549+
3 6.0
7550+
4 3.0
75517551
dtype: int64
75527552
75537553
>>> df.clip(t, t + 4, axis=0)

0 commit comments

Comments
 (0)