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 19c8fad commit 8d3fec9Copy full SHA for 8d3fec9
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