df = pd.DataFrame(np.random.randn(48, 1), index=rng, columns=['A'])
grouped = df.groupby(lambda x: x.day)
data = [group['A'].values.tolist() for day, group in grouped]
print(json.dumps(data, indent=4))
Pandas Dataframe output to JSON