Skip to content

Commit f63a639

Browse files
committed
adding clarifying limitations of CSV file format
1 parent 7d0bf1c commit f63a639

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

episodes/06-join.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,10 @@ read_back_csv.head(3)
10711071
```
10721072

10731073
The CSV file contains the names of the columns, but not the data types.
1074+
A keen observer may note that the `dataframe` that we wrote to the CSV file did not contain data types, so it is unsurprising that
1075+
the CSV file also does not.
1076+
However, even if we had written a CSV file from an astropy `Table`, which does contain data type,
1077+
data type would not appear in the CSV file, highlighting a limitation of this format.
10741078
Additionally, notice that the index in `candidate_df` has become an unnamed column
10751079
in `read_back_csv` and a new index has been created. The Pandas functions for writing and reading CSV
10761080
files provide options to avoid that problem, but this is an example of

0 commit comments

Comments
 (0)