You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
csv.Sniffer detects skipinitialspace by a simple rule: the spaces are a part of the format if every field which follows a delimiter starts with a space. It is wrong in both directions.
A space before a quoted field is not detected. A quote is only a quote at the very start of a field, so not skipping the space splits the field:
A space which cannot be skipped is counted as evidence. Spaces inside quoted or escaped fields are never skipped, so they say nothing about the padding:
Activity
gh-154744: Improve detection of skipinitialspace in csv.Sniffer (GH-1…
pythongh-154744: Improve detection of skipinitialspace in csv.Sniffer (…