I am working with flask and SQLalchemy, everything is coming together, but when I want to query the database to return data, it is simply returning the object, and not the information, for example the column info, inside the object.
Class
class stock_info(db.Model):
#information in here#
When Querying Database
myStock = stock_info.query.get(6)
print("This is the info: ", myStock)
Output
<stock_info 6>
It is returning the correct data, but it is just showing me the object, how can I return what is inside eg the column data and then I am parsing the info after that etc.,
Do I need to put it into a dataframe or like select which column I would like to see?