Skip to content

Commit 23a2d36

Browse files
author
MarcoGorelli
committed
reduce diff
1 parent 689afe7 commit 23a2d36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/groupby/test_function.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,8 @@ def test_max_nan_bug():
717717
-05-06,2013-05-06 00:00:00,,log.log
718718
-05-07,2013-05-07 00:00:00,OE,xlsx"""
719719

720-
df = pd.read_csv(StringIO(raw), parse_dates=[1])
720+
with tm.assert_produces_warning(UserWarning, match="Could not infer format"):
721+
df = pd.read_csv(StringIO(raw), parse_dates=[0])
721722
gb = df.groupby("Date")
722723
r = gb[["File"]].max()
723724
e = gb["File"].max().to_frame()

0 commit comments

Comments
 (0)