Skip to content

Commit

Permalink
tes
Browse files Browse the repository at this point in the history
  • Loading branch information
VLucet committed Jan 12, 2024
1 parent fad1056 commit 5d5a5c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mdtools/labelstudio.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,13 @@ def get_name(df):
print(df.head())
column_name = "source_file_with_dep"
col = df[column_name].tolist()
# first_valid = next(x for x in col if not isnan(x))
from math import isnan
first_valid = next(x for x in col if not isnan(x))
print("&&&&&&&")
print(col)
# print(col)
print(col[0])
print(type(col[0]))
print(first_valid)
print("&&&&&&&")
source_file_ex = df.at[first_valid, column_name]
print(source_file_ex)
Expand Down

0 comments on commit 5d5a5c3

Please sign in to comment.