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("https://www.mousemine.org/mousemine/service") query = service.new_query("Gene") query.add_view( "primaryIdentifier", "symbol", "organism.name", "homologues.homologue.primaryIdentifier", "homologues.homologue.symbol", "homologues.homologue.organism.name", "homologues.type", "homologues.dataSets.name" ) query.add_constraint("homologues.type", "NONE OF", ["horizontal gene… Read More save as dataframe python