|
77 | 77 | from pandas._libs import index as libindex, tslib as libts, lib, iNaT
|
78 | 78 | from pandas.core.config import get_option
|
79 | 79 | from pandas.core.strings import StringMethods
|
| 80 | +from pandas.core.sets import SetMethods |
80 | 81 |
|
81 | 82 | import pandas.plotting._core as gfx
|
82 | 83 |
|
@@ -158,7 +159,7 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
|
158 | 159 | Copy input data
|
159 | 160 | """
|
160 | 161 | _metadata = ['name']
|
161 |
| - _accessors = set(['dt', 'cat', 'str']) |
| 162 | + _accessors = set(['dt', 'cat', 'str', 'set']) |
162 | 163 | _deprecations = generic.NDFrame._deprecations | frozenset(
|
163 | 164 | ['asobject', 'sortlevel', 'reshape', 'get_value', 'set_value',
|
164 | 165 | 'from_csv', 'valid'])
|
@@ -3992,6 +3993,7 @@ def to_period(self, freq=None, copy=True):
|
3992 | 3993 | # Accessor Methods
|
3993 | 3994 | # ----------------------------------------------------------------------
|
3994 | 3995 | str = CachedAccessor("str", StringMethods)
|
| 3996 | + set = CachedAccessor("set", SetMethods) |
3995 | 3997 | dt = CachedAccessor("dt", CombinedDatetimelikeProperties)
|
3996 | 3998 | cat = CachedAccessor("cat", CategoricalAccessor)
|
3997 | 3999 | plot = CachedAccessor("plot", gfx.SeriesPlotMethods)
|
|
0 commit comments