I am trying to get my rows as a list or a pandas data frame from a Query.all() function in SqlAlchemy.
users = session.query(User).filter_by(name='steve').all();
the results came out as an array of models object.I need the values and columns to be shown as :
id|name|age
All other solutions proposed to do a for loop through the result and to extract each value (which it make no sense).
I am using python3.6
Class User(Base):
__tablename__ = 'users'
id = Column(Integer, primary_key=True)
name = Column(Integer)
age = Column(Integer);