DataFrame to Dictionary

By: Julia on Aleph-Zero-Heroes

Re-posted from: https://aleph-zero-heroes.netlify.com/posts/dataframe_to_dict/

Intro There are two Julia data structures that I use again and again:
Dictionaries DataFrames Dictionaries are supplied in the Julia distribution as a standard data type. Data-frames have to be added using the DataFrames.jl package. They are both incredibly useful for reasons I will explain below.
And one of the things I find almost as useful as either of them by themselves is the ability to convert from one to another.