<repo_name>matthewsaaronj/coms_w4995_applied_ml<file_sep>/hw_1.py
# -*- coding: utf-8 -*-
"""
Homework 1
"""
import pandas as pd

# Task 1.2
def fib(n):
    a, b = 1, 1
    for i in range(n-1):
        a, b = b, a + b
    return a


# Task 1.3
def load_pop():
    pop = pd.read_csv('./data/population.csv')
    return pop
        

<file_sep>/hw_1_test.py
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 25 19:54:41 2019

@author: aaron
"""

import pytest
import pandas as pd
from hw_1 import fib
from hw_1 import load_pop


def test_fib():
    assert fib(2) == 1
    assert fib(5) == 5
    assert fib(12) == 144
    
    
def pop_shape():
    pop = load_pop()
    assert pop.shape[0] == 14885
    assert pop.shape[1] == 4
    
    
def world_pop():
    pop = load_pop()
    assert pop[pop.Year == 2010]['Value'].sum().round() == 73066674189
    
    
    
    

    

<file_sep>/README.md
# coms_w4995_applied_ml
Coursework for Columbia University Applied Machine Learning course. 
<file_sep>/requirements.txt
# Add any libraries that must first be installed 
pytest
pandas