Skip to content

Commit 28b7bde

Browse files
committed
TST: Allow for more than one acessor on a Series
`.dt` and `.str` can be available when the Series is of type category, which makes `.cat` available.
1 parent 4121dca commit 28b7bde

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pandas/core/series.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2704,12 +2704,10 @@ def _dir_deletions(self):
27042704

27052705
def _dir_additions(self):
27062706
rv = set()
2707-
# these accessors are mutually exclusive, so break loop when one exists
27082707
for accessor in self._accessors:
27092708
try:
27102709
getattr(self, accessor)
27112710
rv.add(accessor)
2712-
break
27132711
except AttributeError:
27142712
pass
27152713
return rv

0 commit comments

Comments
 (0)