AttributeError: 'str' object has no attribute '_execute_on_connection'
AttributeError: 'str' object has no attribute '_execute_on_connection' Question: I have a problem with following code: from pandasql import sqldf import pandas as pd df = pd.DataFrame({‘column1’: [1, 2, 3], ‘column2’: [4, 5, 6]}) query = "SELECT * FROM df WHERE column1 > 1" new_dataframe = sqldf(query) print(new_dataframe) When I submit, I have this error: Traceback …