Hello Roshun,
You can either download the results of the SQL query as a .csv file (or JSON, whatever data format works) and upload it to Pandas. Alternatively, you can use many SQL integrations directly in a Python environment, if your database can be accessed through an online connection, like a Heroku server.
Hope this helps!