Commit 76b7a2bb authored by William Stonewall Monroe's avatar William Stonewall Monroe
Browse files

Merge branch 'fix-db-load-cell' into 'master'

Split db load and create cell to avoid forced recreates

See merge request rc-data-science/createandparsesacct!7
parents d8cad0c7 59cc68f5
%% Cell type:code id: tags:
```
import sqlite3
import slurm2sql
import pandas as pd
```
%% Cell type:code id: tags:
```
db = sqlite3.connect('test.db')
```
%% Cell type:code id: tags:
```
slurm2sql.slurm2sql(db, ['-S', '2020-03-18', '-a'])
```
%% Cell type:code id: tags:
```
# For example, you can then convert to a dataframe:
df1 = pd.read_sql('SELECT * FROM slurm', db)
```
%% Cell type:code id: tags:
```
df1.head(5)
```
%% Cell type:code id: tags:
```
print("more plots to come")
```
%% Cell type:code id: tags:
```
```
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment