-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
56 lines (23 loc) · 877 Bytes
/
main.py
File metadata and controls
56 lines (23 loc) · 877 Bytes
1
2
3
4
5
6
7
8
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
39
40
41
42
43
44
45
46
import argparse
import p_acquisition.m_acquisition as mac
import p_wrangling.m_wrangling as maw
import p_analysis.m_analysis as man
def argument_parser():
"""
parsear argumentos
"""
parser = argparse.ArgumentParser(description='parse arguments')
parser.add_argument("-p", "--path", help="specify the path of the database", type=str, required=True)
args = parser.parse_args()
return args
def main(arguments):
print('Starting process...')
path = arguments.path
df_data, jobs_table, countries_raw= mac.acquire(path)
countries_df= maw.cleaning_scrap_data(countries_raw)
table_merged = maw.merge_table(df_data, jobs_table, countries_df)
grouped= man.group_final_table(table_merged)
print('Finished process...')
if __name__ == '__main__':
arguments = argument_parser()
main(arguments)