Skip to content

Commit 17ba154

Browse files
author
Suraj Mishra
committed
Fix pandas 3.x dtype error in immunolabeling normalization
1 parent 499e317 commit 17ba154

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

EMT_data_analysis/analysis_scripts/Analysis_tools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,6 +2079,7 @@ def _normalize_to_T0_mean_by_round_and_condiiton(group: pd.DataFrame) -> pd.Data
20792079
Normalize each to time 0 mean intensity (for that condition and round)
20802080
loop through each round and condition
20812081
"""
2082+
group["Mean Intensity"] = group["Mean Intensity"].astype(float)
20822083
for round in group["Round"].unique():
20832084
sub_group = group[(group["Round"] == round)]
20842085
group.loc[sub_group.index, "Mean Intensity"] = sub_group["Mean Intensity"] / sub_group[sub_group["Time (h)"] == 0]["Mean Intensity"].mean()

0 commit comments

Comments
 (0)