Skip to content

Commit b2cb68f

Browse files
jrebacktm9k1
authored andcommitted
whitespace
1 parent 1b431c5 commit b2cb68f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/_libs/lib.pyx

+6-6
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def memory_usage_of_objects(arr: object[:]) -> int64_t:
106106
def is_scalar(val: object) -> bool:
107107
"""
108108
Return True if given value is scalar.
109-
109+
110110
Parameters
111111
----------
112112
val : object
@@ -129,7 +129,7 @@ def is_scalar(val: object) -> bool:
129129
-------
130130
bool
131131
Return True if given object is scalar, False otherwise
132-
132+
133133
Examples
134134
--------
135135
>>> dt = pd.datetime.datetime(2018, 10, 3)
@@ -138,15 +138,15 @@ def is_scalar(val: object) -> bool:
138138

139139
>>> pd.api.types.is_scalar([2, 3])
140140
False
141-
141+
142142
>>> pd.api.types.is_scalar({0: 1, 2: 3})
143143
False
144-
144+
145145
>>> pd.api.types.is_scalar((0, 2))
146146
False
147-
147+
148148
pandas supports PEP 3141 numbers:
149-
149+
150150
>>> from fractions import Fraction
151151
>>> pd.api.types.is_scalar(Fraction(3, 5))
152152
True

0 commit comments

Comments
 (0)