Skip to content

Commit

Permalink
rm index
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Apr 16, 2024
1 parent 5091711 commit 72705c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pdf_build_src/process_markdowns.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def read_table_from_tsv(input_file: Path, output_file : Path | None = None):
assert table_to_read.exists(), f"This file does not exist\n:{table_to_read}"

df = pd.read_csv(table_to_read, sep="\t")
df_as_md = df.to_markdown()
df_as_md = df.to_markdown(index=False)
f.write(df_as_md)
f.write("\n")

Expand Down
8 changes: 4 additions & 4 deletions pdf_build_src/tests/data/read_from_tsv/expected.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

lorem ipsum

| | onset | duration | response_time | trial_type | trial_extra |
|---:|--------:|-----------:|----------------:|:-------------|:--------------|
| 0 | 200 | 20 | 15.8 | word | 中国人 |
| 1 | 240 | 5 | 1.734 | visual | nan |
| onset | duration | response_time | trial_type | trial_extra |
|--------:|-----------:|----------------:|:-------------|:--------------|
| 200 | 20 | 15.8 | word | 中国人 |
| 240 | 5 | 1.734 | visual | nan |

TSV files MUST be in UTF-8 encoding.

0 comments on commit 72705c7

Please sign in to comment.