save as dataframe python

I am really new in python, so I am doing a consultd and I want that the results be save like dataframe instead of be just print in the terminal. Here is my code: service = Service("") query = service.new_query("Gene") query.add_view( "primaryIdentifier", "symbol", "", "homologues.homologue.primaryIdentifier", "homologues.homologue.symbol", "", "homologues.type", "" ) query.add_constraint("homologues.type", "NONE OF", ["horizontal gene… Read More save as dataframe python