Skip to content

Commit 4d7b2d2

Browse files
ZanirPZanirP
ZanirP
authored and
ZanirP
committed
pre-commit complete
1 parent 4cb54c7 commit 4d7b2d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6463,7 +6463,7 @@ def astype(
64636463
warnings.warn(
64646464
"The 'category' dtype is being set to ordered=False by default.",
64656465
DeprecationWarning,
6466-
stacklevel=find_stack_level()
6466+
stacklevel=find_stack_level(),
64676467
)
64686468

64696469
if isinstance(dtype, CategoricalDtype):

pandas/tests/frame/methods/test_replace.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1319,14 +1319,14 @@ def test_replace_value_category_type(self):
13191319
["cat1", "catX", "cat3", "cat4"], ordered=False
13201320
)
13211321

1322-
# replace values in input dataframe
1323-
# GH#61074
1322+
# replace values in input dataframe
1323+
# GH#61074
13241324
msg = "The 'category' dtype is being set to ordered=False by default."
13251325
for col in ["col2", "col4"]:
13261326
if input_df[col].dtype.ordered:
13271327
with tm.assert_produces_warning(DeprecationWarning, match=msg):
13281328
input_df[col] = input_df[col].astype("category")
1329-
1329+
13301330
input_df["col5"] = input_df["col5"].astype("category")
13311331

13321332
input_df["col2"] = input_df["col2"].cat.rename_categories({"d": "z"})

0 commit comments

Comments
 (0)