X Tutup
The Wayback Machine - https://web.archive.org/web/20250611152222/https://github.com/python/cpython/pull/104385
Skip to content

gh-104380: Improve csv has_header heuristics #104385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gaogaotiantian
Copy link
Member

@gaogaotiantian gaogaotiantian commented May 11, 2023

Improved type detection for some common types - boolean and datetime. Now ['IsOK', 'True', 'True'] will vote yes to has_header instead of no. ['IsOK', 'yes', 'no'] will vote yes instead of ignore.

sample13 was a bad test - it was just to indicate a corner case not so correct behavior. The bahavior after this change actually makes more sense.

@gaogaotiantian gaogaotiantian requested a review from merwok May 26, 2023 02:10
@gaogaotiantian
Copy link
Member Author

@merwok do you have some time to give this a review? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
X Tutup