Skip to content

Commit 41bdd63

Browse files
author
Mateusz Górski
committed
Reformatted files
1 parent 66d5866 commit 41bdd63

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

pandas/tests/arrays/sparse/test_array.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -658,16 +658,12 @@ def test_getslice_tuple(self):
658658
dense = np.array([np.nan, 0, 3, 4, 0, 5, np.nan, np.nan, 0])
659659

660660
sparse = SparseArray(dense)
661-
res = sparse[
662-
4:,
663-
] # noqa: E231
661+
res = sparse[4:,] # noqa: E231
664662
exp = SparseArray(dense[4:,]) # noqa: E231
665663
tm.assert_sp_array_equal(res, exp)
666664

667665
sparse = SparseArray(dense, fill_value=0)
668-
res = sparse[
669-
4:,
670-
] # noqa: E231
666+
res = sparse[4:,] # noqa: E231
671667
exp = SparseArray(dense[4:,], fill_value=0) # noqa: E231
672668
tm.assert_sp_array_equal(res, exp)
673669

pandas/tests/indexing/test_callable.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,10 @@ def test_frame_loc_callable(self):
1717
res = df.loc[lambda x: x.A > 2]
1818
tm.assert_frame_equal(res, df.loc[df.A > 2])
1919

20-
res = df.loc[
21-
lambda x: x.A > 2,
22-
] # noqa: E231
20+
res = df.loc[lambda x: x.A > 2,] # noqa: E231
2321
tm.assert_frame_equal(res, df.loc[df.A > 2,]) # noqa: E231
2422

25-
res = df.loc[
26-
lambda x: x.A > 2,
27-
] # noqa: E231
23+
res = df.loc[lambda x: x.A > 2,] # noqa: E231
2824
tm.assert_frame_equal(res, df.loc[df.A > 2,]) # noqa: E231
2925

3026
res = df.loc[lambda x: x.B == "b", :]
@@ -94,9 +90,7 @@ def test_frame_loc_callable_labels(self):
9490
res = df.loc[lambda x: ["A", "C"]]
9591
tm.assert_frame_equal(res, df.loc[["A", "C"]])
9692

97-
res = df.loc[
98-
lambda x: ["A", "C"],
99-
] # noqa: E231
93+
res = df.loc[lambda x: ["A", "C"],] # noqa: E231
10094
tm.assert_frame_equal(res, df.loc[["A", "C"],]) # noqa: E231
10195

10296
res = df.loc[lambda x: ["A", "C"], :]

pandas/tests/series/indexing/test_indexing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,7 @@ def test_uint_drop(any_int_dtype):
929929
expected = pd.Series([4, 2, 3], dtype=any_int_dtype)
930930
tm.assert_series_equal(series, expected)
931931

932+
932933
def test_head_tail(test_data):
933934
assert_series_equal(test_data.series.head(), test_data.series[:5])
934935
assert_series_equal(test_data.series.head(0), test_data.series[0:0])

0 commit comments

Comments
 (0)