Skip to content

Commit dd08085

Browse files
andreasbuhrproost
authored andcommitted
DOC: fix is_scalar documentation (pandas-dev#28998) (pandas-dev#29004)
1 parent 3214e68 commit dd08085

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)