File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6456,15 +6456,15 @@ def astype(
64566456 else :
64576457 # else, only a single dtype is given
64586458
6459- # GH 61074: Make dtype="category" imply "ordered" = False
6459+ # GH 61074: Make dtype="category" imply "ordered" = False
64606460 # and add a deprecation warning
64616461 if dtype == "category" :
64626462 if isinstance (self .dtype , CategoricalDtype ):
64636463 if self .dtype .ordered :
64646464 warnings .warn (
64656465 (
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."
64686468 ),
64696469 DeprecationWarning ,
64706470 stacklevel = find_stack_level (),
Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ def test_astype_categorical_to_categorical(
613613 # GH 61074
614614 def check_deprecation_warning (series ):
615615 """
616- Helper function to check DeprecationWarning
616+ Helper function to check DeprecationWarning
617617 for ordered = True conversions
618618 """
619619 msg = "The 'category' dtype is being set to ordered=False by default."
You can’t perform that action at this time.
0 commit comments