df.AVG_MINUTES = list(map(list, zip(df.HOUR, df.AVG_MINUTES)))
df.AVG_GRADE = list(map(list, zip(df.HOUR, df.AVG_GRADE)))
How to convert dataframe to a json string and apply some transformations to this string?