Download pool/shard006/Python/0053823_validate_db.py from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 391 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard006/Python/0053823_validate_db.py
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard006/Python/0053823_validate_db.py
-
curl -L -o 0053823_validate_db.py https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard006/Python/0053823_validate_db.py
391 Bytes
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Sun Mar 27 20:17:27 2016 | |
| @author: alanschoen | |
| """ | |
| import sqlite3 | |
| conn = sqlite3.connect('../output/shelters.db') | |
| print "Tables:" | |
| for row in conn.execute("SELECT name FROM sqlite_master WHERE type='table'"): | |
| print row | |
| print "Shelters:" | |
| for row in conn.execute('SELECT * FROM shelters ORDER BY NoboMile LIMIT 5'): | |
| print row | |
| conn.close() |