How to map data in column panda dataframe
Dataframe data I need to group each student/name by the teacher. Which I was able to do. Now I can't get the below desired output:
Dataframe to map I want to output the data to this:
{ "name": "Roberto Firmino", "age": 31, "height": "2.1m" }, { "name": "Andrew Robertson", "age" : 28, "height": "2.1m" }, { "name": "Darwin Nunez", "age": 23, "height": "2.1m" }