Skip to content

Commit b5c26c7

Browse files
ZanirPZanirP
ZanirP
authored and
ZanirP
committed
did precheck run, fixed string lengths
1 parent 47aed69 commit b5c26c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/core/generic.py

+3-3
Original file line numberDiff line numberDiff 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(),

pandas/tests/series/methods/test_astype.py

+1-1
Original file line numberDiff line numberDiff 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."

0 commit comments

Comments
 (0)