Запустите SQL -запрос на DataFrame Pandas

from pandasql import sqldf

output = sqldf("select * from df")
Difficult Deer