Skip to content

Commit f7f3f49

Browse files
weikhorweikhor
weikhor
authored and
weikhor
committed
resolve conversation
1 parent 1bf9706 commit f7f3f49

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pandas/tests/frame/test_cumulative.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def test_cumsum_preserve_dtypes(self):
8787
@pytest.mark.parametrize("method", ["cumsum", "cumprod", "cummin", "cummax"])
8888
@pytest.mark.parametrize("axis", [0, 1])
8989
def test_numeric_only_flag(self, method, axis):
90-
print(method, axis)
9190
df = DataFrame(
9291
{
9392
"int": [1, 2, 3],
@@ -101,9 +100,8 @@ def test_numeric_only_flag(self, method, axis):
101100
],
102101
}
103102
)
104-
df_numeric_only = df.drop(["string", "datetime"], axis=axis)
103+
df_numeric_only = df.drop(["string", "datetime"], axis=1)
105104

106-
for axis in [0, 1]:
107-
result = getattr(df, method)(axis=axis, numeric_only=True)
108-
expected = getattr(df_numeric_only, method)(axis)
109-
tm.assert_frame_equal(result, expected)
105+
result = getattr(df, method)(axis=axis, numeric_only=True)
106+
expected = getattr(df_numeric_only, method)(axis)
107+
tm.assert_frame_equal(result, expected)

0 commit comments

Comments
 (0)