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

str.split ignores n if pat is None #6466

Closed
behzadnouri opened this issue Feb 24, 2014 · 1 comment · Fixed by #6467
Closed

str.split ignores n if pat is None #6466

behzadnouri opened this issue Feb 24, 2014 · 1 comment · Fixed by #6467
Labels
Bug Strings String extension data type and string data
Milestone

Comments

@behzadnouri
Copy link
Contributor

as observed in: http://stackoverflow.com/questions/21998590/
str.split ignores n if pat is None

relevant source code:

# pandas/core/strings.py
def str_split(arr, pat=None, n=None):
    if pat is None:
        if n is None or n == 0:
            n = -1
        f = lambda x: x.split()
    ....
@cpcloud
Copy link
Member

cpcloud commented Feb 24, 2014

i'll take this

@cpcloud cpcloud self-assigned this Feb 24, 2014
@cpcloud cpcloud added Bug and removed TODO-CI labels Feb 24, 2014
@cpcloud cpcloud added this to the 0.14.0 milestone Feb 24, 2014
cpcloud added a commit that referenced this issue Feb 25, 2014
gouthambs pushed a commit to gouthambs/pandas that referenced this issue Mar 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Strings String extension data type and string data
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants