Skip to content

Instantly share code, notes, and snippets.

@zhuangyan
zhuangyan / group_sum.py
Created February 27, 2017 08:20 — forked from greatghoul/group_sum.py
SqlAlchemy Group By
#!/usr/bin/env python
#-*- coding: utf-8 -*-
from sqlalchemy import create_engine, Column, Integer, String, func
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
Base = declarative_base()
class StudentInfo(Base):