Skip to content

Commit cf77d63

Browse files
author
Santhosh18
committed
Fixed linting issues
1 parent 26ae2f4 commit cf77d63

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

doc/source/whatsnew/v1.1.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,7 @@ Other
11801180
- Bug in :class:`Tick` comparisons raising ``TypeError`` when comparing against timedelta-like objects (:issue:`34088`)
11811181
- Bug in :class:`Tick` multiplication raising ``TypeError`` when multiplying by a float (:issue:`34486`)
11821182
- Passing a `set` as `names` argument to :func:`pandas.read_csv`, :func:`pandas.read_table`, or :func:`pandas.read_fwf` will raise ``ValueError: Names should be an ordered collection.`` (:issue:`34946`)
1183+
11831184
.. ---------------------------------------------------------------------------
11841185
11851186
.. _whatsnew_110.contributors:

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)