df.AVG_MINUTES = df[['HOUR', 'AVG_MINUTES']].values.tolist()
df.AVG_GRADE = df[['HOUR', 'AVG_GRADE']].values.tolist()
How to convert dataframe to a json string and apply some transformations to this string?