import pandas as pd
import os

from utils.cluster import cluster_data,plot_clusters_figure
from utils.myfile import test_function

#Read data. Data paths must be datafile's uuid as main dir and inside of it the data file ALWAYS named as "datafile" and it's corresponding extension name: ".csv", ".txt", ".edf", ".json"... 
data0 = pd.read_csv("<datafile_uuid_0>/datafile.<datafile_extension_0>")
data1 = pd.read_csv("<datafile_uuid_1>/datafile.<datafile_extension_1>")
data2 = pd.read_csv("<datafile_uuid_2>/datafile.<datafile_extension_2>")
data3 = pd.read_csv("<datafile_uuid_3>/datafile.<datafile_extension_3>")
# ...

#Code to run
#Add here the code to run. You can create different functions and the results should be clear stated.

#Gather results
#Any type of file can be taken as a result -> images, csv, text… Moreover, the number of results is not limited.
#It is worth noting that the results must now be stored under the “results” directory (it is at the same level as the main file execution).
os.makedirs("results", exist_ok=True)
clustered_data.to_csv("results/clustered_data.csv")
reduced_clustered_data.to_csv("results/reduced_clustered_data.csv")
