I loaded data (from CSV or Excel) into Python's Panda DF.
import pandas as pd
df = pd.read_csv('table1.csv')
Data looks like this:
c1,c2,c3
1,abc,1.5
2,bcd,2.53
3,agf,3.571
How to make SQL create table statement based on data in a dataframe which in this example would be:
create table table1 (c1 int, c2 varchar(3), c3 float);
Thanks.
df.to_sqland create the thing yourself?df.to_sql- do not see any sql coming out of it except errors.