Skip to content

csv.Sniffer().has_header() checks 21, not 20 rows #137952

@maurycy

Description

@maurycy

The code:

This is an off-by-one.

The docs:

Twenty rows after the first row are sampled

I err on correcting the docs, instead of the code, given that users may rely on the current behavior.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    No status

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions