Skip to content

Commit 3aa23ed

Browse files
committed
lint: correction lint errors.
1 parent 5534697 commit 3aa23ed

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

pandas/tests/generic/test_series.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -156,29 +156,23 @@ def finalize(self, other, method=None, **kwargs):
156156
def test_rename_with_multiindex(self):
157157
arrays = [
158158
["bar", "bar", "baz", "baz", "foo", "foo", "qux", "qux"],
159-
["one", "two", "one", "two", "one", "two", "one", "two"]
159+
["one", "two", "one", "two", "one", "two", "one", "two"],
160160
]
161161

162162
tuples = list(zip(*arrays))
163163
index = MultiIndex.from_tuples(tuples, names=["first", "second"])
164164
s = Series(np.ones(8), index=index)
165-
result = s.rename(index={"one": "yes"}, level='second', errors='raise')
165+
result = s.rename(index={"one": "yes"}, level="second", errors="raise")
166166

167167
arrays_expected = [
168168
["bar", "bar", "baz", "baz", "foo", "foo", "qux", "qux"],
169-
["yes", "two", "yes", "two", "yes", "two", "yes", "two"]
169+
["yes", "two", "yes", "two", "yes", "two", "yes", "two"],
170170
]
171171

172172
tuples_expected = list(zip(*arrays_expected))
173173
index_expected = MultiIndex.from_tuples(
174-
tuples_expected,
175-
names=["first", "second"]
174+
tuples_expected, names=["first", "second"]
176175
)
177176
series_expected = Series(np.ones(8), index=index_expected)
178177

179178
assert result.equals(series_expected)
180-
181-
182-
183-
184-

0 commit comments

Comments
 (0)