@@ -328,7 +328,7 @@ def test_agg_consistency():
328328
329329 r = df .resample ("3min" )
330330
331- msg = r"Column \(s\) \['r1', 'r2'\] do not exist"
331+ msg = r"Label \(s\) \['r1', 'r2'\] do not exist"
332332 with pytest .raises (KeyError , match = msg ):
333333 r .agg ({"r1" : "mean" , "r2" : "sum" })
334334
@@ -343,7 +343,7 @@ def test_agg_consistency_int_str_column_mix():
343343
344344 r = df .resample ("3min" )
345345
346- msg = r"Column \(s\) \[2, 'b'\] do not exist"
346+ msg = r"Label \(s\) \[2, 'b'\] do not exist"
347347 with pytest .raises (KeyError , match = msg ):
348348 r .agg ({2 : "mean" , "b" : "sum" })
349349
@@ -534,7 +534,7 @@ def test_agg_with_lambda(cases, agg):
534534 ],
535535)
536536def test_agg_no_column (cases , agg ):
537- msg = r"Column \(s\) \['result1', 'result2'\] do not exist"
537+ msg = r"Label \(s\) \['result1', 'result2'\] do not exist"
538538 with pytest .raises (KeyError , match = msg ):
539539 cases [["A" , "B" ]].agg (** agg )
540540
@@ -582,7 +582,7 @@ def test_agg_specificationerror_series(cases, agg):
582582def test_agg_specificationerror_invalid_names (cases ):
583583 # errors
584584 # invalid names in the agg specification
585- msg = r"Column \(s\) \['B'\] do not exist"
585+ msg = r"Label \(s\) \['B'\] do not exist"
586586 with pytest .raises (KeyError , match = msg ):
587587 cases [["A" ]].agg ({"A" : ["sum" , "std" ], "B" : ["mean" , "std" ]})
588588
@@ -631,7 +631,7 @@ def test_try_aggregate_non_existing_column():
631631 df = DataFrame (data ).set_index ("dt" )
632632
633633 # Error as we don't have 'z' column
634- msg = r"Column \(s\) \['z'\] do not exist"
634+ msg = r"Label \(s\) \['z'\] do not exist"
635635 with pytest .raises (KeyError , match = msg ):
636636 df .resample ("30min" ).agg ({"x" : ["mean" ], "y" : ["median" ], "z" : ["sum" ]})
637637
0 commit comments