---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-10-9d466d8987d1> in <module>()
1 import sqlite3
2 conn = sqlite3.connect("../data/GP09/nominations.db")
----> 3 final_nominations.to_sql("nominations", conn, index=False)
/home/jasonm_dev/anaconda3/lib/python3.5/site-packages/pandas/core/generic.py in to_sql(self, name, con, flavor, schema, if_exists, index, index_label, chunksize, dtype)
1360 sql.to_sql(self, name, con, flavor=flavor, schema=schema,
1361 if_exists=if_exists, index=index, index_label=index_label,
-> 1362 chunksize=chunksize, dtype=dtype)
1363
1364 def to_pickle(self, path, compression='infer'):
/home/jasonm_dev/anaconda3/lib/python3.5/site-packages/pandas/io/sql.py in to_sql(frame, name, con, flavor, schema, if_exists, index, index_label, chunksize, dtype)
469 pandas_sql.to_sql(frame, name, if_exists=if_exists, index=index,
470 index_label=index_label, schema=schema,
--> 471 chunksize=chunksize, dtype=dtype)
472
473
/home/jasonm_dev/anaconda3/lib/python3.5/site-packages/pandas/io/sql.py in to_sql(self, frame, name, if_exists, index, index_label, schema, chunksize, dtype)
1503 if_exists=if_exists, index_label=index_label,
1504 dtype=dtype)
-> 1505 table.create()
1506 table.insert(chunksize)
1507
/home/jasonm_dev/anaconda3/lib/python3.5/site-packages/pandas/io/sql.py in create(self)
586 if self.exists():
587 if self.if_exists == 'fail':
--> 588 raise ValueError("Table '%s' already exists." % self.name)
589 elif self.if_exists == 'replace':
590 self.pd_sql.drop_table(self.name, self.schema)
ValueError: Table 'nominations' already exists.