tools/perf/cli_tools/soundwave/pandas_sqlite.py
def CreateTableIfNotExists(con, name, frame):
  """Create a new empty table, if it doesn't already exist.

  Args:
    con: A sqlite connection object.
    name: Name of SQL table to create.
    frame: A DataFrame used to infer the schema of the table; the index of the
      DataFrame is set as PRIMARY KEY of the table.
  """
  keys = [k for k in frame.index.names if k is not None]
  if not keys:
    keys = None
  db = pandas.io.sql.SQLiteDatabase(con)
  table = pandas.io.sql.SQLiteTable(
      name, db, frame=frame, index=keys is not None, keys=keys,
      if_exists='append')
  table.create()
Create a new empty table, if it doesn't already exist.

  Args:
    con: A sqlite connection object.
    name: Name of SQL table to create.
    frame: A DataFrame used to infer the schema of the table; the index of the
      DataFrame is set as PRIMARY KEY of the table.
  
Create a new empty table, if it doesn't already exist.
Create a new empty table if it doesn ' t already exist .
def CreateTableIfNotExists(con, name, frame):
  keys = [k for k in frame.index.names if k is not None]
  if not keys:
    keys = None
  db = pandas.io.sql.SQLiteDatabase(con)
  table = pandas.io.sql.SQLiteTable(
      name, db, frame=frame, index=keys is not None, keys=keys,
      if_exists='append')
  table.create()
def CreateTableIfNotExists ( con , name , frame ) : keys = [ k for k in frame . index . names if k is not None ] if not keys : keys = None db = pandas . io . sql . SQLiteDatabase ( con ) table = pandas . io . sql . SQLiteTable ( name , db , frame = frame , index = keys is not None , keys = keys , if_exists = 'append' ) table . create ( )
Create a new empty table, if it doesn't already exist.
Create a new empty table if it doesn ' t already exist .
"""Create a new empty table, if it doesn't already exist.

  Args:
    con: A sqlite connection object.
    name: Name of SQL table to create.
    frame: A DataFrame used to infer the schema of the table; the index of the
      DataFrame is set as PRIMARY KEY of the table.
  """
con
A sqlite connection object.
A sqlite connection object .
name
Name of SQL table to create.
Name of SQL table to create .
frame
A DataFrame used to infer the schema of the table; the index of the
DataFrame is set as PRIMARY KEY of the table.
A DataFrame used to infer the schema of the table ; the index of the DataFrame is set as PRIMARY KEY of the table .