Skip to content

Commit

Permalink
Merge pull request #214 from abostroem/issue198-datatype
Browse files Browse the repository at this point in the history
adding clarifying limitations of CSV file format
  • Loading branch information
ErinBecker authored Mar 8, 2024
2 parents cfdfa08 + f63a639 commit b74855e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions episodes/06-join.md
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,10 @@ read_back_csv.head(3)
```

The CSV file contains the names of the columns, but not the data types.
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
the CSV file also does not.
However, even if we had written a CSV file from an astropy `Table`, which does contain data type,
data type would not appear in the CSV file, highlighting a limitation of this format.
Additionally, notice that the index in `candidate_df` has become an unnamed column
in `read_back_csv` and a new index has been created. The Pandas functions for writing and reading CSV
files provide options to avoid that problem, but this is an example of
Expand Down

0 comments on commit b74855e

Please sign in to comment.