Skip to content

Commit

Permalink
Merge pull request #8 from Jhiggin/Bug-Req.txt
Browse files Browse the repository at this point in the history
#7 Fix for Req.txt and allow SQL Agt run
  • Loading branch information
Jhiggin authored Dec 13, 2020
2 parents 47d013a + 1e8cd80 commit 3a147c9
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 14,756 deletions.
11 changes: 6 additions & 5 deletions (9) Pulling_It_All_Together.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@

import pandas as pd
import configparser
import os
from datetime import datetime

# Load Config
config_file = os.path.join(os.path.dirname(__file__), 'Config/config.ini')
config = configparser.ConfigParser()
config.read('Config/config.ini')
config.read(config_file)

# Initialize variables
input_path = config['Production']['input_path']
statecode_path = config['Production']['statecode_path']
output_path = config['Production']['output_path']
input_path = os.path.join(os.path.dirname(__file__), config['Production']['input_path'])
statecode_path = os.path.join(os.path.dirname(__file__), config['Production']['statecode_path'])
output_path = os.path.join(os.path.dirname(__file__), config['Production']['output_path'])
conn_string = config['Production']['conn_string']

# Read file from directory
Expand Down Expand Up @@ -64,4 +66,3 @@

# Write final to SQL Server
write_sql(final, 'Breweries', conn_string)

7,375 changes: 0 additions & 7,375 deletions File_Storage/out/breweries_scrubbed.csv

This file was deleted.

7,375 changes: 0 additions & 7,375 deletions File_Storage/out/test.csv

This file was deleted.

Binary file removed File_Storage/out/test.feather
Binary file not shown.
Binary file removed File_Storage/out/test.parquet
Binary file not shown.
Binary file removed File_Storage/out/test.pkl
Binary file not shown.
Binary file removed File_Storage/out/test.xlsx
Binary file not shown.
Binary file modified Functions/__pycache__/sql_processes.cpython-38.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pandas
numpy
sqlalchemy
xldr
xlrd
pyodbc
pyarrow

0 comments on commit 3a147c9

Please sign in to comment.