mirror of
https://github.com/python/cpython.git
synced 2025-11-24 04:17:38 +00:00
[3.14] gh-137952: update csv.Sniffer().has_header() docs to describe the actual off-by-onish behavior (GH-137953) (#141434)
gh-137952: update `csv.Sniffer().has_header()` docs to describe the actual off-by-onish behavior (GH-137953)
* checks 21, not 20
* Say "header" instead of "first row" to disambiguate per review.
---------
(cherry picked from commit 0d7b48a8f5)
Co-authored-by: Maurycy Pawłowski-Wieroński <maurycy@maurycy.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
This commit is contained in:
parent
83c3eae099
commit
21c9c919aa
1 changed files with 2 additions and 2 deletions
|
|
@ -295,8 +295,8 @@ The :mod:`csv` module defines the following classes:
|
|||
- the second through n-th rows contain strings where at least one value's
|
||||
length differs from that of the putative header of that column.
|
||||
|
||||
Twenty rows after the first row are sampled; if more than half of columns +
|
||||
rows meet the criteria, :const:`True` is returned.
|
||||
Twenty-one rows after the header are sampled; if more than half of the
|
||||
columns + rows meet the criteria, :const:`True` is returned.
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue