Skip to content

Commit 9a0c381

Browse files
committed
Added notes to indicate a test update required upon deprecation.
1 parent 6fba249 commit 9a0c381

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pandas/core/arrays/categorical.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2531,6 +2531,11 @@ def _delegate_method(self, name, *args, **kwargs):
25312531

25322532
@property
25332533
def categorical(self):
2534+
"""
2535+
Note: Upon deprecation, `test_tab_completion_with_categorical`
2536+
will need to be updated. `categorical` will need to be removed
2537+
from `ok_for_cat`.
2538+
"""
25342539
warn("`Series.cat.categorical` has been deprecated. Use the "
25352540
"attributes on 'Series.cat' directly instead.",
25362541
FutureWarning,
@@ -2539,6 +2544,11 @@ def categorical(self):
25392544

25402545
@property
25412546
def name(self):
2547+
"""
2548+
Note: Upon deprecation, `test_tab_completion_with_categorical`
2549+
will need to be updated. `name` will need to be removed from
2550+
ok_for_cat`.
2551+
"""
25422552
warn("`Series.cat.name` has been deprecated. Use `Series.name` "
25432553
"instead.",
25442554
FutureWarning,
@@ -2547,6 +2557,11 @@ def name(self):
25472557

25482558
@property
25492559
def index(self):
2560+
"""
2561+
Note: Upon deprecation, `test_tab_completion_with_categorical`
2562+
will need to be updated. `index` will need to be removed from `
2563+
ok_for_cat`.
2564+
"""
25502565
warn("`Series.cat.index` has been deprecated. Use `Series.index` "
25512566
"instead.",
25522567
FutureWarning,

0 commit comments

Comments
 (0)