Skip to content

Commit a9e08fc

Browse files
author
Santhosh18
committed
Fixed linting issues
1 parent 3290858 commit a9e08fc

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

pandas/tests/frame/methods/test_explode.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ def test_duplicate_index(input_dict, input_index, expected_dict, expected_index)
167167
def test_inferred_dtype():
168168
# GH 34923
169169
s = pd.Series([1, None, 3])
170-
df = pd.DataFrame({'A': [s, s], "B": 1})
170+
df = pd.DataFrame({"A": [s, s], "B": 1})
171171
result = df.explode("A")
172172
expected = pd.DataFrame(
173173
{
174174
"A": np.array([1, np.nan, 3, 1, np.nan, 3], dtype=np.float64),
175-
"B": np.array([1, 1, 1, 1, 1, 1], dtype=np.int64)
175+
"B": np.array([1, 1, 1, 1, 1, 1], dtype=np.int64),
176176
},
177-
index=[0, 0, 0, 1, 1, 1]
177+
index=[0, 0, 0, 1, 1, 1],
178178
)
179179
tm.assert_frame_equal(result, expected)
180180

pandas/tests/series/methods/test_explode.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ def test_basic():
99
s = pd.Series([[0, 1, 2], np.nan, [], (3, 4)], index=list("abcd"), name="foo")
1010
result = s.explode()
1111
expected = pd.Series(
12-
[0, 1, 2, np.nan, np.nan, 3, 4], index=list("aaabcdd"),
13-
dtype=np.float64, name="foo"
12+
[0, 1, 2, np.nan, np.nan, 3, 4],
13+
index=list("aaabcdd"),
14+
dtype=np.float64,
15+
name="foo",
1416
)
1517
tm.assert_series_equal(result, expected)
1618

0 commit comments

Comments
 (0)