Skip to content

Commit b77dc4c

Browse files
johnD18merwok
andauthored
Update Misc/NEWS.d/next/Library/2023-05-01-18-53-20.gh-issue-102140._4gFLu.rst
Co-authored-by: Éric <merwok@netwok.org>
1 parent 2e8d2f2 commit b77dc4c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
Enhanced the :meth:`has_header` in the :mod:`CSV` for better header detection.
2-
Now checks if all columns are strings and if the :py:data:`columnTypes` is empty.
3-
If conditions are met, it assigns the median length of the strings to :py:data:`columnTypes`.
1+
Improve detection in the :meth:`~csv.Sniffer.has_header` method of :class:`csv.Sniffer` when all cells in the first row are strings.

0 commit comments

Comments
 (0)