-
Notifications
You must be signed in to change notification settings - Fork 194
"ParserWarning: Length of header or names does not match length of data" #2238
Copy link
Copy link
Closed
Description
mkdocs serve has some of such warnings. Am I alone or you see them too @bids-standard/maintainers ???
INFO - ParserWarning: Length of header or names does not match length of data. This leads to a loss of
data with index_col=False.
File
"/home/yoh/proj/bids/bids-specification/.venv/lib/python3.11/site-packages/pandas/io/parsers/base_parser.py",
line 925, in _check_data_length
warnings.warn(
File
"/home/yoh/proj/bids/bids-specification/tools/schemacode/src/bidsschematools/render/tsv.py", line
31, in
df = pd.read_csv(
INFO - ParserWarning: Length of header or names does not match length of data. This leads to a loss of
data with index_col=False.
File
"/home/yoh/proj/bids/bids-specification/.venv/lib/python3.11/site-packages/pandas/io/parsers/base_parser.py",
line 925, in _check_data_length
warnings.warn(
File
"/home/yoh/proj/bids/bids-specification/tools/schemacode/src/bidsschematools/render/tsv.py", line
31, in
df = pd.read_csv(
those suggest some misformatted TSV and I think we should make them into ERRORs so PRs do not allow for such to appear. WDYT?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels