@@ -1537,6 +1537,7 @@ def test_transform_sum_one_column_with_matching_labels_and_missing_labels():
1537
1537
tm .assert_frame_equal (result , expected )
1538
1538
1539
1539
1540
+ # GH#58084
1540
1541
def test_min_one_unobserved_category_no_type_coercion ():
1541
1542
df = DataFrame ({"A" : Categorical ([1 , 1 , 2 ], categories = [1 , 2 , 3 ]), "B" : [3 , 4 , 5 ]})
1542
1543
df ["B" ] = df ["B" ].astype ("int32" )
@@ -1545,9 +1546,9 @@ def test_min_one_unobserved_category_no_type_coercion():
1545
1546
1546
1547
expected = DataFrame ({"B" : [3 , 3 , 5 ]}, dtype = "int32" )
1547
1548
tm .assert_frame_equal (expected , result )
1548
- assert df ["B" ].dtype == result ["B" ].dtype
1549
1549
1550
1550
1551
+ # GH#58084
1551
1552
def test_min_multiple_unobserved_categories_no_type_coercion ():
1552
1553
df = DataFrame (
1553
1554
{
@@ -1588,9 +1589,9 @@ def test_min_multiple_unobserved_categories_no_type_coercion():
1588
1589
dtype = "int64" ,
1589
1590
)
1590
1591
tm .assert_frame_equal (expected , result )
1591
- assert df ["Y" ].dtype == result ["Y" ].dtype
1592
1592
1593
1593
1594
+ # GH#58084
1594
1595
def test_min_float32_multiple_unobserved_categories_no_type_coercion ():
1595
1596
df = DataFrame (
1596
1597
{
@@ -1638,9 +1639,9 @@ def test_min_float32_multiple_unobserved_categories_no_type_coercion():
1638
1639
dtype = "float32" ,
1639
1640
)
1640
1641
tm .assert_frame_equal (expected , result )
1641
- assert df ["Y" ].dtype == result ["Y" ].dtype
1642
1642
1643
1643
1644
+ # GH#58084
1644
1645
def test_min_all_empty_data_no_type_coercion ():
1645
1646
df = DataFrame (
1646
1647
{
@@ -1669,9 +1670,9 @@ def test_min_all_empty_data_no_type_coercion():
1669
1670
1670
1671
expected = DataFrame ({"Y" : []}, dtype = "int32" )
1671
1672
tm .assert_frame_equal (expected , result )
1672
- assert df ["Y" ].dtype == result ["Y" ].dtype
1673
1673
1674
1674
1675
+ # GH#58084
1675
1676
def test_min_one_dim_no_type_coercion ():
1676
1677
df = DataFrame ({"Y" : [9435 , - 5465765 , 5055 , 0 , 954960 ]})
1677
1678
df ["Y" ] = df ["Y" ].astype ("int32" )
@@ -1682,4 +1683,3 @@ def test_min_one_dim_no_type_coercion():
1682
1683
1683
1684
expected = DataFrame ({"Y" : [9435 , - 5465765 , - 5465765 , 0 , 9435 ]}, dtype = "int32" )
1684
1685
tm .assert_frame_equal (expected , result )
1685
- assert df ["Y" ].dtype == result ["Y" ].dtype
0 commit comments