Description Usage Arguments Details
We require only a few simple sql methods. They are 1. Writing an entire dataframe directly to a database as it's own table, 2. Reading the same tables as dataframes, possibly with some modification using SQL statements, 3. Checking to see if a table exists. If a particular table does it exists it's assumed it has all data required.
1 2 |
action |
Action to perform in db call. Either read, write, or check |
db |
name of database. A file if using sqlite |
sql_query |
SQL statement if action is read |
df |
Dataframe of data if action is write. Will copy the dataframe verbatim to it's own table with name new_table_name |
new_table_name |
Table name for new data being written |
table_to_check |
Table name to check if it exists for when action is check |
read returns a dataframe write returns nothing check returns boolean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.