pandas: summary
sql: summary and by summary