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
Copy file name to clipboardExpand all lines: docs/lib/csv.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Comma-separated values
2
2
3
-
To load a [comma-separated values](https://en.wikipedia.org/wiki/Comma-separated_values) (CSV) file, use [`FileAttachment`](../javascript/files). The `file.csv` and `file.tsv` methods are implemented using [D3](https://d3js.org/d3-dsv) and are based on [RFC 4180](https://datatracker.ietf.org/doc/html/rfc4180).
3
+
To load a [comma-separated values](https://en.wikipedia.org/wiki/Comma-separated_values) (CSV) file, use [`FileAttachment`](../javascript/files)`.csv`. The `csv`, `tsv`, and `dsv` method implementations are based on [RFC 4180](https://datatracker.ietf.org/doc/html/rfc4180).
For a different delimiter, use `FileAttachment.dsv`. <ahref="https://github.com/observablehq/framework/pull/1172"class="observablehq-version-badge"data-version="prerelease"title="Added in #1172"></a> For example, for semicolon separated values:
A common pitfall with CSV is that it is untyped: numbers, dates, booleans, and every other possible value are represented as text and there is no universal way to automatically determine the correct type.
0 commit comments