ifiguero 2025-01-18 23:52:06 -03:00
parent 77eaf1a319
commit 53faab7913
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ def analisis_univariado(dfi, target=None, continuas=[], discretas=[]):
tot = freq_matrix[0][1] + freq_matrix[1][1]
totf = 100 * tot / len(dfi[var])
resultsmody.append([
var, " ", f"{percentages_matrix[0][1]:.1f} ({freq_matrix[0][1]}/{len(data_group1)})", f"{percentages_matrix[1][1]:.1f} ({freq_matrix[1][1]}/{len(data_group2)})"
var, " ", f"{percentages_matrix[0][1]:.1f} ({freq_matrix[0][1]}/{len(data_group1)})", f"{percentages_matrix[1][1]:.1f} ({freq_matrix[1][1]}/{len(data_group2)})",
f"{fisher_pval:.3f}", ("*" if fisher_pval < 0.05 else "NS"), f"{totf:.1f} ({tot}/{len(dfi[var])})"
])