Im working with a huge database right now (700 mil rows+) and to analyze it correctly some code was written:
SQL_Query = pd.read_sql_query(query,connection) c