Skip to content

Commit 751c8a9

Browse files
Fix doctest dtype
1 parent 4c2b3c5 commit 751c8a9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/core/generic.py

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

0 commit comments

Comments
 (0)