# HG changeset patch # User luca_milaz # Date 1730927697 0 # Node ID 7f3552eaf77424d4bb2869a7cabd7911d86d65f7 # Parent 8e3cbf68cdc4137b905e4f18a4efb8070aeffd79 Uploaded diff -r 8e3cbf68cdc4 -r 7f3552eaf774 COBRAxy/marea_cluster.py --- a/COBRAxy/marea_cluster.py Wed Nov 06 21:02:00 2024 +0000 +++ b/COBRAxy/marea_cluster.py Wed Nov 06 21:14:57 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]