Skip to content

Commit ca9a487

Browse files
committed
fixed formatting issue
1 parent d0a4f3e commit ca9a487

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

pandas/tests/indexing/test_iloc.py

+17-3
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ def test_iloc_mask(self):
745745

746746
# the possibilities
747747
locs = np.arange(4)
748-
nums = 2**locs
748+
nums = 2 ** locs
749749
reps = [bin(num) for num in nums]
750750
df = DataFrame({"locs": locs, "nums": nums}, reps)
751751

@@ -1197,7 +1197,14 @@ def test_iloc_setitem_multicolumn_to_datetime(self):
11971197

11981198
df.iloc[:, [0]] = DataFrame({"A": to_datetime(["2021", "2022"])})
11991199
expected = DataFrame(
1200-
{"A": [Timestamp("2021-01-01 00:00:00"), Timestamp("2022-01-01 00:00:00")], "B": ["2021", "2022"]}, dtype=object
1200+
{
1201+
"A": [
1202+
Timestamp("2021-01-01 00:00:00"),
1203+
Timestamp("2022-01-01 00:00:00"),
1204+
],
1205+
"B": ["2021", "2022"],
1206+
},
1207+
dtype=object,
12011208
)
12021209
tm.assert_frame_equal(df, expected)
12031210

@@ -1383,7 +1390,14 @@ def test_frame_iloc_setitem_callable_multicolumn_to_datetime(self):
13831390

13841391
df.iloc[:, [0]] = df.iloc[:, [0]].apply(to_datetime)
13851392
expected = DataFrame(
1386-
{"A": [Timestamp("2022-01-01 00:00:00"), Timestamp("2022-01-02 00:00:00")], "B": ["2021", "2022"]}, dtype=object
1393+
{
1394+
"A": [
1395+
Timestamp("2022-01-01 00:00:00"),
1396+
Timestamp("2022-01-02 00:00:00"),
1397+
],
1398+
"B": ["2021", "2022"],
1399+
},
1400+
dtype=object,
13871401
)
13881402
tm.assert_frame_equal(df, expected)
13891403

0 commit comments

Comments
 (0)