API Documentation
Below you will find details about the functions and modules of our project.
Módulo consolidador
module for extracting the necessary data to consolidate opening data.
extract_from_excel(path)
Read the files of a folder data/input
and return a list of dataframes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_path |
str
|
Path to folder with the files |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
List[DataFrame]
|
list of dataframes |
Source code in app\ETL\extract.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
module with all the transformations necessary to consolidate the opening data.
concat_data_frames(data_frame_list)
Transform a list of dataframes in only one dataframe.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_frame_list |
List[DataFrame]
|
list of dataframes |
required |
Returns:
Type | Description |
---|---|
DataFrame
|
pd.DataFrame: one dataframe |
Source code in app\ETL\transform.py
8 9 10 11 12 13 14 15 16 17 18 19 |
|
module with all the transformation necessary to consolidate the opening data.
load_excel(data_frame, output_path, file_name)
Receive a dataframe and save as excel.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_frame |
DataFrame
|
dataframe to be save as excel |
required |
output_path |
str
|
path where the file will be saved |
required |
file_name |
str
|
name of folder to be saved |
required |
Returns:
Name | Type | Description |
---|---|---|
None |
None
|
|
Source code in app\ETL\load.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
This module contains functions for the ETL process.
pipeline_completa(input_folder, output_folder, output_file_name)
Função ETL: Extract, Transform and load data from Excel files.
type: input_folder: strs
Source code in app\ETL\pipeline.py
8 9 10 11 12 13 14 15 16 |
|