Skip to content

Commit

Permalink
markdown source builds
Browse files Browse the repository at this point in the history
Auto-generated via {sandpaper}
Source  : b74855e
Branch  : main
Author  : Erin Becker <[email protected]>
Time    : 2024-03-08 23:45:57 +0000
Message : Merge pull request #214 from abostroem/issue198-datatype

adding clarifying limitations of CSV file format
  • Loading branch information
actions-user committed Mar 8, 2024
1 parent 3d4321b commit d26d3cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions 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
2 changes: 1 addition & 1 deletion md5sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"episodes/03-transform.md" "77469df641fe8ceb22d052d8698db8fa" "site/built/03-transform.md" "2024-03-08"
"episodes/04-motion.md" "c2642d107deb0093d78e111d359bd16f" "site/built/04-motion.md" "2024-03-08"
"episodes/05-select.md" "600928a8a4997755e32c8755cfeb31fd" "site/built/05-select.md" "2024-03-08"
"episodes/06-join.md" "6953137fef1d92b56eb45ab790fe08d4" "site/built/06-join.md" "2024-03-08"
"episodes/06-join.md" "9b19db10b8e0f95e622be96fd6e54025" "site/built/06-join.md" "2024-03-08"
"episodes/07-photo.md" "1cc618a02e5cf609052e83abaebf0094" "site/built/07-photo.md" "2024-03-08"
"episodes/08-plot.md" "abae0965c1415da07a22c13593bbfe4f" "site/built/08-plot.md" "2024-03-08"
"instructors/calculating_MIST_isochrone.md" "3201f3ca13dc11bbef74a7d24a433362" "site/built/calculating_MIST_isochrone.md" "2023-05-15"
Expand Down

0 comments on commit d26d3cc

Please sign in to comment.