Skip to content

Commit

Permalink
print dup vals
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Jan 3, 2025
1 parent 0cc8e3b commit 7a191aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parl_motion_detector/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def move_to_package(data_dir: Path = data_dir):
# check there are no duplicated values in the first column

if df[df.columns[0]].duplicated().sum() != 0:
raise ValueError("Duplicated values in the first column")
dulicate_vals = df[df.columns[0]][df[df.columns[0]].duplicated()]
raise ValueError(f"Duplicated values in the first column: {dulicate_vals}")

df.to_parquet(package_dir / file_ending)

0 comments on commit 7a191aa

Please sign in to comment.