Skip to content

Commit

Permalink
Merge branch 'string-methods'
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
wesm committed Jul 15, 2012
2 parents e2633d4 + d2f745a commit 5a64a12
Show file tree
Hide file tree
Showing 4 changed files with 1,335 additions and 79 deletions.
6 changes: 5 additions & 1 deletion pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import pandas.core.generic as generic
import pandas.core.nanops as nanops
import pandas.lib as lib
from pandas.util.decorators import Appender, Substitution
from pandas.util.decorators import Appender, Substitution, cache_readonly

from pandas.compat.scipy import scoreatpercentile as _quantile

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

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

@cache_readonly
def str(self):
from pandas.core.strings import StringMethods
return StringMethods(self)

_INDEX_TYPES = ndarray, Index, list, tuple

Expand Down
Loading

0 comments on commit 5a64a12

Please sign in to comment.