Skip to content

Commit d62e02e

Browse files
committed
black formatting
1 parent 92148ff commit d62e02e

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

pandas/core/internals/blocks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,7 @@ def _interpolate_with_fill(
11901190
if limit_area is None:
11911191
values = interpolate_2d(values, axis=axis)
11921192
else:
1193+
11931194
def func(values):
11941195
invalid = isna(values)
11951196

pandas/tests/series/methods/test_interpolate.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -452,11 +452,9 @@ def test_interp_limit_direction_raises(self, method, limit_direction, expected):
452452

453453
def test_interp_limit_area_with_pad(self):
454454
# Test for issue #26796
455-
s = Series(
456-
[np.nan, np.nan, 3, np.nan, np.nan, np.nan, 7, np.nan, np.nan])
455+
s = Series([np.nan, np.nan, 3, np.nan, np.nan, np.nan, 7, np.nan, np.nan])
457456

458-
expected = Series(
459-
[np.nan, np.nan, 3.0, 3.0, 3.0, 3.0, 7.0, np.nan, np.nan])
457+
expected = Series([np.nan, np.nan, 3.0, 3.0, 3.0, 3.0, 7.0, np.nan, np.nan])
460458
result = s.interpolate(method="pad", limit_area="inside")
461459
tm.assert_series_equal(result, expected)
462460

@@ -466,8 +464,7 @@ def test_interp_limit_area_with_pad(self):
466464
result = s.interpolate(method="pad", limit_area="inside", limit=1)
467465
tm.assert_series_equal(result, expected)
468466

469-
expected = Series(
470-
[np.nan, np.nan, 3.0, np.nan, np.nan, np.nan, 7.0, 7.0, 7.0])
467+
expected = Series([np.nan, np.nan, 3.0, np.nan, np.nan, np.nan, 7.0, 7.0, 7.0])
471468
result = s.interpolate(method="pad", limit_area="outside")
472469
tm.assert_series_equal(result, expected)
473470

@@ -479,11 +476,9 @@ def test_interp_limit_area_with_pad(self):
479476

480477
def test_interp_limit_area_with_backfill(self):
481478
# Test for issue #26796
482-
s = Series(
483-
[np.nan, np.nan, 3, np.nan, np.nan, np.nan, 7, np.nan, np.nan])
479+
s = Series([np.nan, np.nan, 3, np.nan, np.nan, np.nan, 7, np.nan, np.nan])
484480

485-
expected = Series(
486-
[np.nan, np.nan, 3.0, 7.0, 7.0, 7.0, 7.0, np.nan, np.nan])
481+
expected = Series([np.nan, np.nan, 3.0, 7.0, 7.0, 7.0, 7.0, np.nan, np.nan])
487482
result = s.interpolate(method="bfill", limit_area="inside")
488483
tm.assert_series_equal(result, expected)
489484

@@ -493,8 +488,7 @@ def test_interp_limit_area_with_backfill(self):
493488
result = s.interpolate(method="bfill", limit_area="inside", limit=1)
494489
tm.assert_series_equal(result, expected)
495490

496-
expected = Series(
497-
[3.0, 3.0, 3.0, np.nan, np.nan, np.nan, 7.0, np.nan, np.nan])
491+
expected = Series([3.0, 3.0, 3.0, np.nan, np.nan, np.nan, 7.0, np.nan, np.nan])
498492
result = s.interpolate(method="bfill", limit_area="outside")
499493
tm.assert_series_equal(result, expected)
500494

0 commit comments

Comments
 (0)