-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
31 lines (26 loc) · 777 Bytes
/
main.py
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
"""
Main script
"""
import logging
import pandas as pd
from analysis import numerical_eda, visualize_data
from core import logging_config
from engineering.extraction import extract_raw_data
from engineering.persistence_manager import PersistenceManager
logging_config.setup_logging()
logger: logging.Logger = logging.getLogger(__name__)
def main() -> None:
"""
Main function to execute
:return: None
:rtype: NoneType
"""
logger.info("Running main method")
dataframe: pd.Dataframe = extract_raw_data()
dataframe = numerical_eda(dataframe)
visualize_data(dataframe)
PersistenceManager.save_to_pickle(dataframe)
if __name__ == '__main__':
logger.info("First log message")
main()
logger.info("End of the program execution")