diff --git a/mdtools/labelstudio.py b/mdtools/labelstudio.py index 6166bbe..6128dd4 100644 --- a/mdtools/labelstudio.py +++ b/mdtools/labelstudio.py @@ -226,7 +226,7 @@ def get_name(df): column_name = "source_file_with_dep" col = df[column_name].tolist() # from math import isnan - first_valid = next(x for x in col if not np.isnan(x)) + first_valid = next(x for x in col if not pd.isna(x)) print("&&&&&&&") # print(col) print(col[0])