diff --git a/mdtools/labelstudio.py b/mdtools/labelstudio.py index 1c10d53..9949929 100644 --- a/mdtools/labelstudio.py +++ b/mdtools/labelstudio.py @@ -224,7 +224,8 @@ def get_name(df): print(df.head()) column_name = "source_file_with_dep" - first_valid = df[column_name].first_valid_index() + col = df[column_name].tolist() + first_valid = next(x for x in col if not isnan(x)) print("&&&&&&&") print(first_valid) print("&&&&&&&")