From e9b60649fd79baf8d851b68eaaac3eedb9b03a51 Mon Sep 17 00:00:00 2001 From: Neal Bazirake Date: Tue, 16 Jun 2015 20:57:13 -0400 Subject: [PATCH 1/2] basicfile.py Our first fleshed out python code and probable functions to be used. --- basicfile.py | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 basicfile.py diff --git a/basicfile.py b/basicfile.py new file mode 100644 index 0000000..6a505d7 --- /dev/null +++ b/basicfile.py @@ -0,0 +1,42 @@ + + +''' + Date : 06/11/2015 + Description : This will be a a relatively simple document breaking down the city_bash project + +''' +##Necessary modules?? + +import openpyxl +import csv +import os + + +class CityBash(object): + + def __init__(self): + pass + + + def pull_csv(self): + + ''' + Pull CSV data into python and seperate the fields by variables + ''' + + os.chdir("//JSELECTED PATH") # Depending on where we'll be pulling this from + wb = load_workbook('initial.xlsx') + pass + + + def get_geocoded_cordinates(self): + pass + + + +def main(): + print("###") + + #Run the intial pull_csv and + +main() From 14c7ad90e9aa30fe64d271a880d8dc404eb20418 Mon Sep 17 00:00:00 2001 From: Neal Bazirake Date: Tue, 16 Jun 2015 21:20:43 -0400 Subject: [PATCH 2/2] Update basicfile.py --- basicfile.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/basicfile.py b/basicfile.py index 6a505d7..bb4d265 100644 --- a/basicfile.py +++ b/basicfile.py @@ -1,6 +1,7 @@ - +#!/usr/bin/python ''' + Author : Various Users Date : 06/11/2015 Description : This will be a a relatively simple document breaking down the city_bash project @@ -19,23 +20,24 @@ def __init__(self): def pull_csv(self): - ''' Pull CSV data into python and seperate the fields by variables ''' - - os.chdir("//JSELECTED PATH") # Depending on where we'll be pulling this from - wb = load_workbook('initial.xlsx') - pass + os.chdir("//Documents/GitStuff/Project_Boston_Housing") # Depending on where we'll be pulling this from + wb = load_workbook('initial.xlsx') + print(wb) def get_geocoded_cordinates(self): pass - + def main(): - print("###") + print("###This should work") + new = CityBash() + new_csv = new.self.pull_csv() + print(new_csv) #Run the intial pull_csv and