Skip to content

Commit 7a89037

Browse files
Fix doctest dtype
1 parent 4c2b3c5 commit 7a89037

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/generic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7562,11 +7562,11 @@ def clip(
75627562
75637563
>>> t = pd.Series([2, -4, np.NaN, 6, 3])
75647564
>>> t
7565-
0 2
7566-
1 -4
7565+
0 2.0
7566+
1 -4.0
75677567
2 <NA>
7568-
3 6
7569-
4 3
7568+
3 6.0
7569+
4 3.0
75707570
dtype: object
75717571
75727572
>>> df.clip(t, axis=0)

0 commit comments

Comments
 (0)