Skip to content

BUG: Implement step in slice StringMethod #8843

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

Merged

Conversation

jtratner
Copy link
Contributor

Resolves #8754.

Turned out to be dead simple too :)

@@ -674,6 +674,7 @@ def str_slice(arr, start=None, stop=None, step=1):
----------
start : int or None
stop : int or None
step : int or None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe int, default 1 instead?
Or actually, the default could also be just None for step. That is the same as 1 and seems more consistent?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, that's done

jorisvandenbossche added a commit that referenced this pull request Nov 18, 2014
BUG: Implement step in slice StringMethod
@jorisvandenbossche jorisvandenbossche merged commit d5a3509 into pandas-dev:master Nov 18, 2014
@jorisvandenbossche
Copy link
Member

Yeps, indeed dead simple :-)
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: step argument in the slice StringMethod not working
2 participants