-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
executable file
·53 lines (39 loc) · 1.31 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import logging
import pandas as pd
from src.control.data_handler import DatasetHandler
from src.control.utils import filter, func_composition
from src.model.project import Project
from src.model.student import Student
from src.view.runner import Runner
def setup() -> None:
movies = pd.read_pickle("./data/movies.p")
# Get only numeric columns
myfunc = func_composition.compose(
filter.get_num_cols_only_df,
filter.get_df_cols_list,
filter.enumerate_df_col_names,
)
myfunc(movies)
def create_project() -> Project:
title = "Analysis Project"
students = [
Student(1, "Seba"),
Student(2, "Sawsan"),
Student(3, "Sara"),
Student(4, "Mona"),
]
return Project(title, students)
def main() -> None:
project = create_project()
Runner(project).run()
URL = [
"https://raw.githubusercontent.com/cs109/2014_data/master/countries.csv",
"https://raw.githubusercontent.com/MainakRepositor/Datasets/master/Typing%20Speed/texts.csv",
"https://www.kaggle.com/datasets/ohinhaque/ocd-patient-dataset-demographics-and-clinical-data",
"https://www.kaggle.com/datasets/piyushborhade/diabetes-dataset",
]
# d = DatasetHandler(URL[3])
# d.clear_cache()
# d.download()
if __name__ == "__main__":
main()