sqlite3 error message in Python:
the code is as follows:
df = pandas.DataFrame(newsdetail)
df.to_excel("news1.xls")
import sqlite3
with sqlite3.connect("news.sqlite") as db:
df.to_sql("news",con = db)
df2 = pandas.read_sql_query("SELECT * FROM news",con = db)
print(df2)
what is the problem? Just came into contact with Python, and looked at the code that came out of the tutorial intact.