Mercurial > repos > bimib > marea_2
changeset 373:4e794bafca6b draft
Uploaded
author | luca_milaz |
---|---|
date | Wed, 06 Nov 2024 21:15:39 +0000 |
parents | 9cb6eaa3c2b8 |
children | d900ed89e338 |
files | marea_2/marea_cluster.py |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/marea_2/marea_cluster.py Wed Nov 06 18:02:22 2024 +0000 +++ b/marea_2/marea_cluster.py Wed Nov 06 21:15:39 2024 +0000 @@ -511,11 +511,8 @@ X = pd.DataFrame.from_dict(X, orient = 'index') for i in X.columns: - tmp = X[i][0] - if tmp == None: + if any(val is None for val in X[i]): X = X.drop(columns=[i]) - - ## NAN TO HANLDE if args.k_max != None: numero_classi = X.shape[0]