From 239fd4700e7181f3e86fd54ec235647ebcdbdac3 Mon Sep 17 00:00:00 2001 From: Harriet Dashnow Date: Wed, 27 Jun 2018 12:45:54 +1000 Subject: [PATCH] broadcast series to dataframe required in latest version of pandas --- scripts/estimateSTR.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/estimateSTR.py b/scripts/estimateSTR.py index 37121dd..f023227 100644 --- a/scripts/estimateSTR.py +++ b/scripts/estimateSTR.py @@ -332,7 +332,7 @@ def main(): elif z.shape[0] > 1: # Calculate p values based on z scores (one sided) - pvals = z.apply(lambda z_row: [norm.sf(x) for x in z_row], axis=1) # apply to each row + pvals = z.apply(lambda z_row: [norm.sf(x) for x in z_row], axis=1, result_type='broadcast') # apply to each row # Adjust p values using Benjamini/Hochberg method adj_pvals = pvals.apply(p_adj_bh, axis=0) # apply to each column