Objectives:
Keywords and concepts:
In [ ]:
# Required relevant imports
import sqlalchemy as sa
import csv
In [ ]:
# Playground imports – not important to the topic
# Ipython notebook prettyness
from IPython.display import HTML
from tabulate import tabulate
def pretty_table(data, headers):
"""Print nice tables in the ipython notebook"""
return HTML(tabulate(data, headers, "html"))
To warm up, we will load a dimension table from a CSV file. The CSV file contains columns: id
, customer_name
, customer_type
.
In [ ]:
with open("03-dimensions/customer.csv") as f:
...
In [ ]: