I have an input dataframe df which is as follows:
id e
1 {"k1":"v1","k2":"v2"}
2 {"k1":"v3","k2":"v4"}
3 {"k1":"v5","k2":"v6"}
I want to "flatten" the column 'e' so that my resultant dataframe is:
id e.k1 e.k2
1 v1 v2
2 v3 v4
3 v5 v6
How can I do this? I tried using json_normalize but did not have much success