@@ -340,25 +340,25 @@ def test_groupby_raises_category(how, by, groupby_series, groupby_func):
340
340
"cummax" : (
341
341
(NotImplementedError , TypeError ),
342
342
"(category type does not support cummax operations|"
343
- + "category dtype not supported|"
344
- + "cummax is not supported for category dtype)" ,
343
+ "category dtype not supported|"
344
+ "cummax is not supported for category dtype)" ,
345
345
),
346
346
"cummin" : (
347
347
(NotImplementedError , TypeError ),
348
348
"(category type does not support cummin operations|"
349
- + "category dtype not supported|"
349
+ "category dtype not supported|"
350
350
"cummin is not supported for category dtype)" ,
351
351
),
352
352
"cumprod" : (
353
353
(NotImplementedError , TypeError ),
354
354
"(category type does not support cumprod operations|"
355
- + "category dtype not supported|"
355
+ "category dtype not supported|"
356
356
"cumprod is not supported for category dtype)" ,
357
357
),
358
358
"cumsum" : (
359
359
(NotImplementedError , TypeError ),
360
360
"(category type does not support cumsum operations|"
361
- + "category dtype not supported|"
361
+ "category dtype not supported|"
362
362
"cumsum is not supported for category dtype)" ,
363
363
),
364
364
"diff" : (
@@ -369,7 +369,7 @@ def test_groupby_raises_category(how, by, groupby_series, groupby_func):
369
369
"fillna" : (
370
370
TypeError ,
371
371
r"Cannot setitem on a Categorical with a new category \(0\), "
372
- + "set the categories first" ,
372
+ "set the categories first" ,
373
373
),
374
374
"first" : (None , "" ),
375
375
"idxmax" : (None , "" ),
@@ -535,33 +535,33 @@ def test_groupby_raises_category_on_category(
535
535
"cummax" : (
536
536
(NotImplementedError , TypeError ),
537
537
"(cummax is not supported for category dtype|"
538
- + "category dtype not supported|"
539
- + "category type does not support cummax operations)" ,
538
+ "category dtype not supported|"
539
+ "category type does not support cummax operations)" ,
540
540
),
541
541
"cummin" : (
542
542
(NotImplementedError , TypeError ),
543
543
"(cummin is not supported for category dtype|"
544
- + "category dtype not supported|"
544
+ "category dtype not supported|"
545
545
"category type does not support cummin operations)" ,
546
546
),
547
547
"cumprod" : (
548
548
(NotImplementedError , TypeError ),
549
549
"(cumprod is not supported for category dtype|"
550
- + "category dtype not supported|"
550
+ "category dtype not supported|"
551
551
"category type does not support cumprod operations)" ,
552
552
),
553
553
"cumsum" : (
554
554
(NotImplementedError , TypeError ),
555
555
"(cumsum is not supported for category dtype|"
556
- + "category dtype not supported|"
557
- + "category type does not support cumsum operations)" ,
556
+ "category dtype not supported|"
557
+ "category type does not support cumsum operations)" ,
558
558
),
559
559
"diff" : (TypeError , "unsupported operand type" ),
560
560
"ffill" : (None , "" ),
561
561
"fillna" : (
562
562
TypeError ,
563
563
r"Cannot setitem on a Categorical with a new category \(0\), "
564
- + "set the categories first" ,
564
+ "set the categories first" ,
565
565
),
566
566
"first" : (None , "" ),
567
567
"idxmax" : (ValueError , "attempt to get argmax of an empty sequence" )
0 commit comments