# HG changeset patch # User luca_milaz # Date 1730927739 0 # Node ID 4e794bafca6bf1c01f40363080f2281cf1f4aeb0 # Parent 9cb6eaa3c2b8fa0d3573a853124cde7c6a78a2d9 Uploaded diff -r 9cb6eaa3c2b8 -r 4e794bafca6b marea_2/marea_cluster.py --- 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]