We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5509fcb commit 7638f53Copy full SHA for 7638f53
pandas/_libs/lib.pyx
@@ -137,8 +137,8 @@ def is_scalar(val: object) -> bool:
137
138
Examples
139
--------
140
- >>> dt = pd.datetime.datetime(2018, 10, 3)
141
- >>> pd.is_scalar(dt)
+ >>> dt = datetime.datetime(2018, 10, 3)
+ >>> pd.api.types.is_scalar(dt)
142
True
143
144
>>> pd.api.types.is_scalar([2, 3])
0 commit comments