I’d like to calculate the geomean using each row from three columns. I found solutions to calculate it from the values in one column (example), but not from a row. Here’s a simplified example: data <- structure(list(fs_id = structure(1:8, levels = c("CON1", "NC", "water", "SCR1", "FAN1_1", "CON2", "SCR2", "FAN1_2"), class = "factor"), twodct_ATP5B = c(1.06960527260684,… Read More Using dplyr to calculate geomean in a row wise fashion
I’ve searched a lot, including in suggested past questions, and didn’t find an answer. Coming from R and tidyverse and new to Python and pandas. I want to add a column to a subset of a dataframe that will sum specific columns row wise. I understand how to do it in multiple steps, but I’m… Read More After subsetting a dataframe, how to add a column that will sum only specific columns in the subset (row wise)?