Created
September 3, 2020 02:37
-
-
Save dfarmer/342e227875d802e7d95e84661034c5f6 to your computer and use it in GitHub Desktop.
Wolfram ReadCSV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ReadCSV[fn_] := Module[{contents}, | |
contents = Import[fn]; | |
Dataset@ | |
With[{hdr = First[contents]}, | |
AssociationThread[hdr -> #] & /@ Rest@contents] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment