@@ -197,9 +197,9 @@ def __init__(
197
197
if is_empty_data (data ) and dtype is None :
198
198
# gh-17261
199
199
warnings .warn (
200
- "The default dtype for empty Series will be 'object' instead"
201
- " of 'float64' in a future version. Specify a dtype explicitly"
202
- " to silence this warning." ,
200
+ "The default dtype for empty Series will be 'object' instead "
201
+ "of 'float64' in a future version. Specify a dtype explicitly "
202
+ "to silence this warning." ,
203
203
DeprecationWarning ,
204
204
stacklevel = 2 ,
205
205
)
@@ -257,14 +257,13 @@ def __init__(
257
257
raise AssertionError (
258
258
"Cannot pass both SingleBlockManager "
259
259
"`data` argument and a different "
260
- "`index` argument. `copy` must "
261
- "be False."
260
+ "`index` argument. `copy` must be False."
262
261
)
263
262
264
263
elif is_extension_array_dtype (data ):
265
264
pass
266
265
elif isinstance (data , (set , frozenset )):
267
- raise TypeError (f"{ repr ( type (data ).__name__ ) } type is unordered" )
266
+ raise TypeError (f"' { type (data ).__name__ } ' type is unordered" )
268
267
elif isinstance (data , ABCSparseArray ):
269
268
# handle sparse passed here (and force conversion)
270
269
data = data .to_dense ()
@@ -3721,7 +3720,6 @@ def _reduce(
3721
3720
If we have an ndarray as a value, then simply perform the operation,
3722
3721
otherwise delegate to the object.
3723
3722
"""
3724
-
3725
3723
delegate = self ._values
3726
3724
3727
3725
if axis is not None :
0 commit comments