Module plateplot.transforms
Transform and aggregate data before plotting.
Functions
- def cv(x)
- 
Expand source codedef cv(x): """ Parameters ----------- x : array-like Notes ------ Coefficient of variation should not be used on z-scored values, or any other values which could be negative. Returns -------- array-like same dimensions as input """ return np.std(x, ddof=1) / np.mean(x) * 100Parameters- x:- array-like
 NotesCoefficient of variation should not be used on z-scored values, or any other values which could be negative. Returns- array-like
- same dimensions as input
 
- def group(df, well, val, plate)
- 
Expand source codedef group(df, well, val, plate): """ Parameters ----------- df : pandas.DataFrame well : str val : str plate : str Returns -------- pandas.DataFrameGroupBy """ df_sub = df[[well, val, plate]] df_grouped = df_sub.groupby([plate, well], as_index=False, sort=False) return df_groupedParameters- df:- pandas.DataFrame
- well:- str
- val:- str
- plate:- str
 Returns- pandas.DataFrameGroupBy