Skip to content

Commit 8d3fec9

Browse files
andreasbuhrTomAugspurger
authored andcommitted
DOC: fix is_scalar documentation (#28998) (#29004)
1 parent 19c8fad commit 8d3fec9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/lib.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ def is_scalar(val: object) -> bool:
137137

138138
Examples
139139
--------
140-
>>> dt = pd.datetime.datetime(2018, 10, 3)
141-
>>> pd.is_scalar(dt)
140+
>>> dt = datetime.datetime(2018, 10, 3)
141+
>>> pd.api.types.is_scalar(dt)
142142
True
143143

144144
>>> pd.api.types.is_scalar([2, 3])

0 commit comments

Comments
 (0)