Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions parse-hamnosys.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

def equal_to_nan(a):
# TBD remove not needed logic
return ((a == np.NaN) | (np.isnan(a) & np.isnan(np.NaN))).all()
return ((a == np.nan) | (np.isnan(a) & np.isnan(np.nan))).all()


def get_args_parser():
Expand Down Expand Up @@ -139,7 +139,7 @@ def main(args):
"Handposition - LR",
"Handposition - TB",
"Handposition - Distance"],
fill_value=np.NaN)
fill_value=np.nan)

# Change default values for columns where 0 means None
data["NonDom first"] = 0
Expand Down Expand Up @@ -839,7 +839,7 @@ def main(args):
for index, row in df.iterrows():
error = 0
for i in range(1, len(df.columns)):
if math.isclose(float(row[i]), float(-1.0), rel_tol=1e-5):
if math.isclose(float(row.iloc[i]), float(-1.0), rel_tol=1e-5):
error = 1
df_success = df_success.drop(index)
break
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pandas~=1.1.5
pandas~=2.3.3