Skip to content

Commit 77a0b35

Browse files
remove redundant comments
1 parent de3df9c commit 77a0b35

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

pandas/tests/frame/methods/test_rename_axis.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ def test_rename_axis_inplace(self, float_frame):
3030

3131
def test_rename_axis_with_allows_duplicate_labels_false(self):
3232
# GH#44958
33-
# Test that rename_axis() works correctly when allows_duplicate_labels=False
3433
df = DataFrame([[1, 2], [3, 4]], columns=["a", "b"]).set_flags(
3534
allows_duplicate_labels=False
3635
)
3736

38-
# Test renaming index (axis=0) with allows_duplicate_labels=False
3937
result = df.rename_axis("idx", axis=0)
4038
expected = DataFrame(
4139
[[1, 2], [3, 4]], index=Index([0, 1], name="idx"), columns=["a", "b"]

pandas/tests/frame/methods/test_set_axis.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,10 @@ def obj(self):
114114

115115
def test_set_axis_with_allows_duplicate_labels_false(self):
116116
# GH#44958
117-
# Test that set_axis() works correctly when allows_duplicate_labels=False
118117
df = DataFrame([[1, 2], [3, 4]], columns=["a", "b"]).set_flags(
119118
allows_duplicate_labels=False
120119
)
121120

122-
# Test setting index with allows_duplicate_labels=False
123121
result = df.set_axis(labels=["x", "y"], axis=0)
124122
expected = DataFrame(
125123
[[1, 2], [3, 4]], index=["x", "y"], columns=["a", "b"]

0 commit comments

Comments
 (0)