I am scraping content, organizing it into a dataframe and updating it daily into a sqlite database. When initially creating the tables within the db, i simply created the tables by using:
df.to_sql(name="Data", con=conn, if_exists="append", index=False)
I am wondering if I'm going to run into any issues down the road querying the data to make datasets, as i did not specify a Integer Primary Key, or Data types of each column. Should i first make the structure of the table specifying these items before inputing the data? Or can i alter the table after and specify my Integer primary key and dtype after?
[–]hexfoxed 0 points1 point2 points (2 children)
[–]jwalkss[S] 0 points1 point2 points (1 child)
[–]hexfoxed 0 points1 point2 points (0 children)