From 6c5c84afed2e4f8bf96726b0fefa634b430f807d Mon Sep 17 00:00:00 2001 From: Patrick Nicodemus Date: Tue, 25 Jun 2024 15:31:27 -0400 Subject: [PATCH] Fixed out of date comment --- chapters/dataframe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/dataframe.md b/chapters/dataframe.md index 745002b..0094445 100644 --- a/chapters/dataframe.md +++ b/chapters/dataframe.md @@ -360,7 +360,7 @@ CSV (Comma-Separated Values) is a common format to store tabular data. The modul ``` -`of_csv` function loads a CSV file into in-memory dataframe while `to_csv` writes a dataframe into CSV file on the disk. In both functions, we can use `sep` to specify the separator, the default separator is `tab` in Owl. +`of_csv` function loads a CSV file into in-memory dataframe while `to_csv` writes a dataframe into CSV file on the disk. In both functions, we can use `sep` to specify the separator, the default separator is chosen from context by identifying a character that yields the same number of columns for every row. For `of_csv` function, you can pass in the head names using `head` argument; otherwise the first row of the CSV file will be used as head. `types` argument is used to specify the type of each column in a CSV file. If `types` is dropped, all the column will be treated as string series by default. Note the length of both `head` and `types` must match the actual number of columns in the CSV file.