I have a df like below, I want to get dictionary from the df.
df = DataFrame(id=[1, 2, 3, 4], value=["Rajesh", "John", "Jacob", "sundar"], other=[0.43, 0.42,0.54, 0.63])
│ Row │ id │ value │ other │
│ │ Int64 │ String │ Float64 │
├─────┼───────┼────────┼─────────┤
│ 1 │ 1 │ Rajesh │ 0.43 │
│ 2 │ 2 │ John │ 0.42 │
│ 3 │ 3 │ Jacob │ 0.54 │
│ 4 │ 4 │ sundar │ 0.63 │
Expected Output:
{1: 'Rajesh', 2: 'John', 3: 'Jacob', 4: 'sundar'}
I know how to do this in pandas,
df.set_index("id")["value"].to_dict()
What would be the pandas's equivalent code in julia?