stripping notebook info
%% Cell type:code id: tags: | ||
``` python | ||
``` | ||
import sqlite3 | ||
import slurm2sql | ||
import pandas as pd | ||
``` | ||
%% Cell type:code id: tags: | ||
``` python | ||
``` | ||
db = sqlite3.connect('test.db') | ||
slurm2sql.slurm2sql(db, ['-S', '2020-03-18', '-a']) | ||
``` | ||
%% Cell type:code id: tags: | ||
``` python | ||
``` | ||
# For example, you can then convert to a dataframe: | ||
df1 = pd.read_sql('SELECT * FROM slurm', db) | ||
``` | ||
%% Cell type:code id: tags: | ||
``` python | ||
``` | ||
df1.head(5) | ||
``` | ||
%% Cell type:code id: tags: | ||
``` python | ||
``` | ||
print("more plots to come") | ||
``` | ||
%% Cell type:code id: tags: | ||
``` python | ||
``` | ||
``` | ||
... | ... |
Please register or sign in to comment