Skip to content

Instantly share code, notes, and snippets.

@dfarmer
Created September 3, 2020 02:37
Show Gist options
  • Save dfarmer/342e227875d802e7d95e84661034c5f6 to your computer and use it in GitHub Desktop.
Save dfarmer/342e227875d802e7d95e84661034c5f6 to your computer and use it in GitHub Desktop.
Wolfram ReadCSV
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