mirror of
https://github.com/rasbt/python_reference.git
synced 2024-11-23 20:11:13 +00:00
comment to skip header
This commit is contained in:
parent
cdac474115
commit
06387b454d
|
@ -28,7 +28,7 @@ nlines = int(nlines.split()[0])
|
||||||
cnx = sqlite3.connect(out_sqlite)
|
cnx = sqlite3.connect(out_sqlite)
|
||||||
|
|
||||||
# Iteratively read CSV and dump lines into the SQLite table
|
# Iteratively read CSV and dump lines into the SQLite table
|
||||||
for i in range(0, nlines, chunksize):
|
for i in range(0, nlines, chunksize): # change 0 -> 1 if your csv file contains a column header
|
||||||
|
|
||||||
df = pd.read_csv(in_csv,
|
df = pd.read_csv(in_csv,
|
||||||
header=None, # no header, define column header manually later
|
header=None, # no header, define column header manually later
|
||||||
|
|
Loading…
Reference in New Issue
Block a user