Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding clarifying limitations of CSV file format #214

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions episodes/06-join.md
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,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
Loading