Skip to content

Commit 0d7b48a

Browse files
pythongh-137952: update csv.Sniffer().has_header() docs to describe the actual off-by-onish behavior (pythonGH-137953)
* checks 21, not 20 * Say "header" instead of "first row" to disambiguate per review. --------- Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Maurycy Pawłowski-Wieroński <[email protected]>
1 parent f5c2a41 commit 0d7b48a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/csv.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ The :mod:`csv` module defines the following classes:
295295
- the second through n-th rows contain strings where at least one value's
296296
length differs from that of the putative header of that column.
297297

298-
Twenty rows after the first row are sampled; if more than half of columns +
299-
rows meet the criteria, :const:`True` is returned.
298+
Twenty-one rows after the header are sampled; if more than half of the
299+
columns + rows meet the criteria, :const:`True` is returned.
300300

301301
.. note::
302302

0 commit comments

Comments
 (0)