str.split ignores n if pat is None · Issue #6466 · pandas-dev/pandas (original) (raw)

# 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()
    ....