Skip to content

Commit 62ceaee

Browse files
committed
https://github.com/pandas-dev/pandas-stubs/pull/1479/files/bc6ed2d7d4a5b8c88dc3ee59df3e68163538729e#r2515210061
1 parent bc6ed2d commit 62ceaee

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

tests/test_groupby.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -259,25 +259,24 @@ def df2scalar(val: DataFrame) -> float:
259259
),
260260
DataFrame,
261261
)
262-
else:
263262

264-
def resample_interpolate(x: DataFrame) -> DataFrame:
265-
return x.resample("ME").interpolate()
263+
def resample_interpolate(x: DataFrame) -> DataFrame:
264+
return x.resample("ME").interpolate()
266265

267-
check(assert_type(GB_DF.apply(resample_interpolate), DataFrame), DataFrame)
266+
check(assert_type(GB_DF.apply(resample_interpolate), DataFrame), DataFrame)
268267

269-
def resample_interpolate_linear(x: DataFrame) -> DataFrame:
270-
return x.resample("ME").interpolate(method="linear")
268+
def resample_interpolate_linear(x: DataFrame) -> DataFrame:
269+
return x.resample("ME").interpolate(method="linear")
271270

272-
check(
273-
assert_type(
274-
GB_DF.apply(
275-
resample_interpolate_linear,
276-
),
277-
DataFrame,
271+
check(
272+
assert_type(
273+
GB_DF.apply(
274+
resample_interpolate_linear,
278275
),
279276
DataFrame,
280-
)
277+
),
278+
DataFrame,
279+
)
281280

282281
# pipe
283282
def g(val: Resampler[DataFrame]) -> DataFrame:

0 commit comments

Comments
 (0)