Created
February 14, 2022 15:12
-
-
Save pplonski/c9485fa8627484b487d277340fd2493e to your computer and use it in GitHub Desktop.
The YAML header for SF crimes notebook - for dashboard creation in Mercury
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: SF Crime 👮 | |
description: Dashboard of San Fransisco Crime Dataset with Mercury | |
show-code: False | |
params: | |
limit: | |
input: slider | |
label: Limit number of cases | |
value: 1000 | |
min: 100 | |
max: 5000 | |
district: | |
input: select | |
label: Select district | |
value: ['BAYVIEW', 'NORTHERN'] | |
choices: ['SOUTHERN', 'BAYVIEW', 'TENDERLOIN', 'MISSION', 'NORTHERN', | |
'TARAVAL', 'INGLESIDE', 'CENTRAL', 'RICHMOND', 'PARK'] | |
multi: True | |
category: | |
input: select | |
label: Select category | |
value: ['VANDALISM', 'ASSAULT', 'ROBBERY'] | |
choices: ['WEAPON LAWS', 'WARRANTS', 'NON-CRIMINAL', 'ASSAULT', | |
'OTHER OFFENSES', 'MISSING PERSON', 'LARCENY/THEFT', 'BURGLARY', | |
'STOLEN PROPERTY', 'ROBBERY', 'FRAUD', 'DRUG/NARCOTIC', | |
'VEHICLE THEFT', 'RECOVERED VEHICLE', 'VANDALISM', 'ARSON', | |
'PROSTITUTION', 'SECONDARY CODES', 'SUSPICIOUS OCC', 'DRUNKENNESS', | |
'TRESPASS', 'SEX OFFENSES, NON FORCIBLE', 'SEX OFFENSES, FORCIBLE', | |
'RUNAWAY', 'KIDNAPPING', 'DISORDERLY CONDUCT', | |
'DRIVING UNDER THE INFLUENCE', 'FORGERY/COUNTERFEITING', | |
'EMBEZZLEMENT', 'BRIBERY', 'FAMILY OFFENSES', 'GAMBLING', | |
'SUICIDE', 'LIQUOR LAWS', 'EXTORTION', 'LOITERING', 'TREA', | |
'BAD CHECKS', 'PORNOGRAPHY/OBSCENE MAT'] | |
multi: True | |
--- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Mercury is a framework for creating and sharing Jupyter Notebook as a web app.
It is open-source with code at https://github.com/mljar/mercury