Building SQL code in Python platform using 'from pandasql import sqldf'. Executed code below and it turned out to be "no such table df" as output. Anyone able to rectify it?
query="""
UPDATE df
SET C = C*10
WHERE C <50
"""
Building SQL code in Python platform using 'from pandasql import sqldf'. Executed code below and it turned out to be "no such table df" as output. Anyone able to rectify it?
query="""
UPDATE df
SET C = C*10
WHERE C <50
"""
Copyright © 2021 Jogjafile Inc.
pandasql does not support update operations, you need to use something like this: