Skip to content

Commit be2d451

Browse files
committed
fix warn
1 parent ef5ed65 commit be2d451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/categorical.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ def map(
12871287
Index(['first', 'second', nan], dtype='object')
12881288
"""
12891289
if na_action is lib.no_default:
1290-
warn(
1290+
warnings.warn(
12911291
"The default value of 'ignore' for the `na_action` parameter in "
12921292
"pandas.Categorical.map is deprecated and will be "
12931293
"changed to 'None' in a future version. Please set na_action to the "

0 commit comments

Comments
 (0)