-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataAnalysis.py
34 lines (30 loc) · 964 Bytes
/
DataAnalysis.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
import pandas as pd
from ydata_profiling import ProfileReport
import os
def data_analytics():
html_file = 'assets/relatorio_analise.html'
if os.path.exists(html_file):
os.remove(html_file)
# Carregue seus dados do arquivo Excel
dados = pd.read_excel('datasets/DOE_LHC.xlsx', index_col='Simulation')
profile_report = ProfileReport(
dados,
sort=None,
html={
"style": {"full_width": True}
},
progress_bar=True,
correlations={
"auto": {"calculate": True},
"pearson": {"calculate": True},
"spearman": {"calculate": True},
"kendall": {"calculate": True},
"phi_k": {"calculate": True},
"cramers": {"calculate": True},
},
explorative=True,
interactions={"continuous": True},
title="Profiling Report"
)
# Gere o relatório em HTML
profile_report.to_file(html_file)