Skip to content

Commit ecac1d1

Browse files
committed
more fixes for lib.pyx (PEP 3141 is_scalar())
1 parent 965a910 commit ecac1d1

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

pandas/_libs/lib.pyx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,24 +109,24 @@ def is_scalar(val: object) -> bool:
109109

110110
Parameters
111111
----------
112-
val : input argument of any type
112+
val : object
113113
This includes:
114-
- numpy array scalar (e.g. np.int64)
115-
- Python builtin numerics
116-
- Python builtin byte arrays and strings
117-
- None
118-
- instances of datetime.datetime
119-
- instances of datetime.timedelta
120-
- Period
121-
- instances of decimal.Decimal
122-
- Interval
123-
- DateOffset
124-
- Fraction
125-
- Number
114+
* numpy array scalar (e.g. np.int64)
115+
* Python builtin numerics
116+
* Python builtin byte arrays and strings
117+
* None
118+
* instances of datetime.datetime
119+
* instances of datetime.timedelta
120+
* Period
121+
* instances of decimal.Decimal
122+
* Interval
123+
* DateOffset
124+
* Fraction
125+
* Number
126126

127127
Returns
128128
-------
129-
True if the given value is scalar, False otherwise.
129+
a bool object.
130130

131131
Examples
132132
--------

0 commit comments

Comments
 (0)