main
ifiguero 2025-01-17 01:29:05 -03:00
parent 7feb349a73
commit a733143970
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ def analisis_univariado(dfi, target=None, continuas=[], discretas=[]):
label_columns = dfi.drop(target, axis=1).columns
# Separar el target en dos grupos: N positivo y N negativo
groups = dfi[target].unique()
groups = sorted(dfi[target].unique())
if len(groups) != 2:
raise ValueError("Target variable must have exactly two unique values")