Commit 6e48efe3 authored by JOSSOUD Olivier's avatar JOSSOUD Olivier
Browse files

Collector. Renumber. No cumcount for trash.

parent e96b2fb1
......@@ -16,6 +16,7 @@ def renumber_flasks(collector_df: pd.DataFrame) -> pd.DataFrame:
# Re-number the flasks of the 4th rack and followings.
collector_df["cumcount"] = collector_df.groupby("flask").cumcount()
collector_df.loc[collector_df["flask"] == 0, "cumcount"] = 0 # Do not cumcount flask "0" (it is the trash!)
collector_df["flask"] = collector_df["flask"] + collector_df["cumcount"] * 300
return collector_df
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment