Skip to content

Commit 408ee6f

Browse files
committed
ENH: get working on vectorized string methods #620
1 parent 70c3deb commit 408ee6f

File tree

3 files changed

+523
-75
lines changed

3 files changed

+523
-75
lines changed

pandas/core/series.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import pandas.core.generic as generic
3030
import pandas.core.nanops as nanops
3131
import pandas.lib as lib
32-
from pandas.util.decorators import Appender, Substitution
32+
from pandas.util.decorators import Appender, Substitution, cache_readonly
3333

3434
from pandas.compat.scipy import scoreatpercentile as _quantile
3535

@@ -2626,6 +2626,10 @@ def tz_localize(self, tz, copy=True):
26262626

26272627
return Series(new_values, index=new_index, name=self.name)
26282628

2629+
@cache_readonly
2630+
def str(self):
2631+
from pandas.core.strings import StringMethods
2632+
return StringMethods(self)
26292633

26302634
_INDEX_TYPES = ndarray, Index, list, tuple
26312635

0 commit comments

Comments
 (0)