Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: StringMethods supports is_xxx methods #9282

Merged
merged 1 commit into from Jan 29, 2015

Conversation

sinhrks
Copy link
Member

@sinhrks sinhrks commented Jan 17, 2015

Derived from #9111.

Add following methods to be compat with standard str.

  • StringMethods.isalnum
  • StringMethods.isalpha
  • StringMethods.isdigit
  • StringMethods.isspace
  • StringMethods.islower
  • StringMethods.isupper
  • StringMethods.istitle

@jreback
Copy link
Contributor

jreback commented Jan 17, 2015

since these functions are quite similar. can you change impl to use a function generator to create these? (with the appropriate doc strings)

It may also be possible to include some of the existing functions in a similar generator.

@jreback jreback added API Design Strings String extension data type and string data labels Jan 17, 2015
@jreback jreback added this to the 0.16.0 milestone Jan 17, 2015
@sinhrks sinhrks force-pushed the string_ismethods branch 2 times, most recently from d3c071c to ca389ea Compare January 18, 2015 00:17
@sinhrks
Copy link
Member Author

sinhrks commented Jan 18, 2015

Right, how about this?

@jreback
Copy link
Contributor

jreback commented Jan 18, 2015

looks good. can you add the methods here as well?

http://pandas.pydata.org/pandas-docs/stable/text.html#method-summary (maybe we want to auto-generate this as well from the StringMethods?)

@sinhrks sinhrks force-pushed the string_ismethods branch 2 times, most recently from d704ffe to fa7299b Compare January 19, 2015 14:39
@sinhrks
Copy link
Member Author

sinhrks commented Jan 19, 2015

@jreback Sure. Did it.

@jreback
Copy link
Contributor

jreback commented Jan 25, 2015

this needs to go after #9322 (and might need a rebase after that) as the docs are changing a bit)

@sinhrks
Copy link
Member Author

sinhrks commented Jan 26, 2015

OK, rebased.

jreback added a commit that referenced this pull request Jan 29, 2015
ENH: StringMethods supports is_xxx methods
@jreback jreback merged commit ee3a1f1 into pandas-dev:master Jan 29, 2015
@jreback
Copy link
Contributor

jreback commented Jan 29, 2015

thanks @sinhrks

@sinhrks sinhrks deleted the string_ismethods branch January 29, 2015 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Strings String extension data type and string data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants