Skip to content

Commit cf93e12

Browse files
committed
Removed test from test_function
1 parent 9d5552c commit cf93e12

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

pandas/tests/groupby/test_function.py

-26
Original file line numberDiff line numberDiff line change
@@ -573,32 +573,6 @@ def test_ops_general(op, targop):
573573
tm.assert_frame_equal(result, expected)
574574

575575

576-
def test_ops_not_as_index(reduction_func):
577-
# GH 21090
578-
# Using as_index=False should not modify grouped column
579-
580-
if reduction_func in ("corrwith",):
581-
pytest.skip("Test not applicable")
582-
583-
if reduction_func in ("nth", "ngroup", "size",):
584-
pytest.skip("Skip until behavior is determined (GH #5755)")
585-
586-
if reduction_func in ("sem", "std"):
587-
pytest.skip("Function incorrectly modifies keys (GH #10355)")
588-
589-
df = DataFrame(np.random.randint(0, 5, size=(100, 2)), columns=["a", "b"])
590-
expected = getattr(df.groupby("a"), reduction_func)().reset_index()
591-
592-
result = getattr(df.groupby("a", as_index=False), reduction_func)()
593-
tm.assert_frame_equal(result, expected)
594-
595-
result = df.groupby("a", as_index=False).agg(reduction_func)
596-
tm.assert_frame_equal(result, expected)
597-
598-
result = getattr(df.groupby("a", as_index=False)["b"], reduction_func)()
599-
tm.assert_frame_equal(result, expected)
600-
601-
602576
def test_max_nan_bug():
603577
raw = """,Date,app,File
604578
-04-23,2013-04-23 00:00:00,,log080001.log

0 commit comments

Comments
 (0)