Skip to content

Commit 1fd3501

Browse files
committed
more fixes for lib.pyx (PEP 3141 is_scalar())
1 parent dcd80f3 commit 1fd3501

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

pandas/_libs/lib.pyx

+14-14
Original file line numberDiff line numberDiff line change
@@ -112,24 +112,24 @@ def is_scalar(val: object) -> bint:
112112

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

130130
Returns
131131
-------
132-
True if the given value is scalar, False otherwise.
132+
a bool object.
133133

134134
Examples
135135
--------

0 commit comments

Comments
 (0)