1import pandas as pd
2pandas.read_excel(io, sheet_name=0, header=0, names=None,
3 index_col=None, usecols=None,
4 squeeze=False, dtype=None, engine=None,
5 converters=None, true_values=None,
6 false_values=None, skiprows=None,
7 nrows=None, na_values=None,
8 keep_default_na=True, verbose=False,
9 parse_dates=False, date_parser=None,
10 thousands=None, comment=None,
11 skipfooter=0, convert_float=True,
12 mangle_dupe_cols=True, **kwds)
13
14# Example
15pd.read_excel('tmp.xlsx', index_col=0)
1import sqlite3
2import pandas as pd
3from sqlalchemy import create_engine
4
5# Read Excel file or sheets using pandas
6
7# Setup code :)
8
9file = "location of Excel file..."
10
11engine = create_engine('sqlite://', echo=False)
12df = pd.read_excel(file, sheet_name=sheetname)
13df.to_sql("test", engine, if_exists="replace", index=False)
14results = engine.execute("Select * from test")
15final = pd.DataFrame(results, columns=df.columns)