This project features the migration of hundreds of Excel files with a similar format to SQL using Python. This code also features a conversion loop to remove macros from all Excel files being migrated using VBA code, and saving a new copy of these files.
- ETL
- Python
- Spyder
- SQL Server
- win32com
- glob
- os
- sys
- datetime
- numpy - 1.16.5
- pandas - 0.25.1
- sqlalchemy - 1.3.9
-
Modules
convert_import.py- Checks if any files need to be converted/uploaded
- Removes macros from Excel files and saves new converted copy
- Imports Excel files to Python
- Basic data cleansing in Python
main.py- Organizes execution of all modulessql.py- Exports data from Python to SQL Server
- Runs code to clean data in SQL Server
- Runs code to create final tables in SQL
warning.py- Creates warning message for importing all directory Excel files
-
SQL Files
SQL_Load.sql- Creates final tables in SQL ServerSQL_Transform.sql- Cleans data in SQL Server