I am learning Pandas + Python.
When I use var = dataFrame.describe()
, I want the output to be converted to json, so that I can send it as a response via a Flask API
order_id quantity
count 5.000000 5.000000
mean 1.200000 1.200000
std 0.447214 0.447214
min 1.000000 1.000000
25% 1.000000 1.000000
50% 1.000000 1.000000
75% 1.000000 1.000000
max 2.000000 2.000000