Q. Consider following code when conn is the name of established connection to MySQL database.
sql SELECT from Sales where zone = "central"
df = pandas.read_sql(sql, conn)
df.head()
What will be stored in df?
Answer =
This code fragment creates a dataframe after reading SQL table ‘sales’. Df contains only those records where zone = ‘central ’.
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )