File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6456,15 +6456,15 @@ def astype(
6456
6456
else :
6457
6457
# else, only a single dtype is given
6458
6458
6459
- # GH 61074: Make dtype="category" imply "ordered" = False
6459
+ # GH 61074: Make dtype="category" imply "ordered" = False
6460
6460
# and add a deprecation warning
6461
6461
if dtype == "category" :
6462
6462
if isinstance (self .dtype , CategoricalDtype ):
6463
6463
if self .dtype .ordered :
6464
6464
warnings .warn (
6465
6465
(
6466
- "The 'category' dtype is being set to ordered=False "
6467
- " by default."
6466
+ "The 'category' dtype is being set to ordered=False "
6467
+ " by default."
6468
6468
),
6469
6469
DeprecationWarning ,
6470
6470
stacklevel = find_stack_level (),
Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ def test_astype_categorical_to_categorical(
613
613
# GH 61074
614
614
def check_deprecation_warning (series ):
615
615
"""
616
- Helper function to check DeprecationWarning
616
+ Helper function to check DeprecationWarning
617
617
for ordered = True conversions
618
618
"""
619
619
msg = "The 'category' dtype is being set to ordered=False by default."
You can’t perform that action at this time.
0 commit comments