@@ -144,8 +144,10 @@ def _check_ndim(self, values, ndim):
144
144
ndim = values .ndim
145
145
146
146
if self ._validate_ndim and values .ndim != ndim :
147
- raise ValueError ("Wrong number of dimensions. "
148
- f"values.ndim != ndim [{ values .ndim } != { ndim } ]" )
147
+ raise ValueError (
148
+ "Wrong number of dimensions. "
149
+ f"values.ndim != ndim [{ values .ndim } != { ndim } ]"
150
+ )
149
151
return ndim
150
152
151
153
@property
@@ -268,8 +270,10 @@ def __repr__(self) -> str:
268
270
else :
269
271
270
272
shape = " x " .join (pprint_thing (s ) for s in self .shape )
271
- result = f"{ name } : { pprint_thing (self .mgr_locs .indexer )} , " \
272
- f"{ shape } , dtype: { self .dtype } "
273
+ result = (
274
+ f"{ name } : { pprint_thing (self .mgr_locs .indexer )} , "
275
+ f"{ shape } , dtype: { self .dtype } "
276
+ )
273
277
274
278
return result
275
279
@@ -1032,8 +1036,7 @@ def coerce_to_target_dtype(self, other):
1032
1036
return self .astype (object )
1033
1037
1034
1038
raise AssertionError (
1035
- "possible recursion in "
1036
- f"coerce_to_target_dtype: { self } { other } "
1039
+ "possible recursion in " f"coerce_to_target_dtype: { self } { other } "
1037
1040
)
1038
1041
1039
1042
elif self .is_timedelta or is_timedelta64_dtype (dtype ):
@@ -1043,8 +1046,7 @@ def coerce_to_target_dtype(self, other):
1043
1046
return self .astype (object )
1044
1047
1045
1048
raise AssertionError (
1046
- "possible recursion in "
1047
- f"coerce_to_target_dtype: { self } { other } "
1049
+ "possible recursion in " f"coerce_to_target_dtype: { self } { other } "
1048
1050
)
1049
1051
1050
1052
try :
@@ -1189,8 +1191,7 @@ def _interpolate(
1189
1191
if method in ("krogh" , "piecewise_polynomial" , "pchip" ):
1190
1192
if not index .is_monotonic :
1191
1193
raise ValueError (
1192
- f"{ method } interpolation requires that the "
1193
- "index be monotonic."
1194
+ f"{ method } interpolation requires that the " "index be monotonic."
1194
1195
)
1195
1196
# process 1-d slices in the axis direction
1196
1197
0 commit comments