Skip to content

Instantly share code, notes, and snippets.

View rebeccabilbro's full-sized avatar

Rebecca Bilbro rebeccabilbro

View GitHub Profile
import os
import sqlite3
def create_tables(conn):
conn.execute("CREATE TABLE contacts (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, email TEXT)")
conn.commit()
def connect(path="contacts.db", syncdb=False):
"""
Connects to the database and ensures there are tables.
import os
import sqlite3
def create_tables(conn):
conn.execute("CREATE TABLE contacts (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, email TEXT)")
conn.commit()
def connect(path="contacts.db", syncdb=False):
"""
Connects to the database and ensures there are tables.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rebeccabilbro
rebeccabilbro / Colonials Sample.ipynb
Created November 23, 2014 20:45
Colonials Project Sample with IPython
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rebeccabilbro
rebeccabilbro / mgen.py
Last active August 29, 2015 14:10 — forked from bbengfort/mgen.py
#!/usr/bin/env python
##########################################################################
## Imports
##########################################################################
import sys
import argparse
import traceback
import numpy as np
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rebeccabilbro
rebeccabilbro / OOP_Workshop_hint.ipynb
Last active February 6, 2016 18:44
A quick introduction to object-oriented programming in Python, including building modules and packages.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rebeccabilbro
rebeccabilbro / top-data-science-questions.md
Created February 25, 2016 22:32
initial outline for Brittne's blog post

Title

The top n questions data scientists ask

Introduction

Data science doesn’t start with data, it starts with a problem…

The pipeline model is useful, but data scientists progress via a series of questions - what are those questions?

Scoping

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.