run sql queries on dataframe code example Example: run sql query on pandas dataframe from pandasql import sqldf output = sqldf("select * from df")