Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
John-Paul Robinson
createAndParseSACCT
Commits
59cc68f5
Commit
59cc68f5
authored
Apr 10, 2020
by
John-Paul Robinson
Browse files
Split db load and create cell to avoid forced recreates
parent
d8cad0c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
slurm-2sql.ipynb
View file @
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:
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment