Skip to content

Commit 5a64a12

Browse files
committed
Merge branch 'string-methods'
* string-methods: TST: added unit tests from PR #1179 and copied docstrings ENH: additional unicode handling ENH: don't repeat numerical types TST: mixed types for string methods ENH: finish docs TST: add testing module for string methods #620 ENH: continue filling out string methods + tests #620 ENH: get working on vectorized string methods #620
2 parents e2633d4 + d2f745a commit 5a64a12

File tree

4 files changed

+1335
-79
lines changed

4 files changed

+1335
-79
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)