sciencerun0.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:lax 作者: XENON1T 项目源码 文件源码
def pre(self, df):
        if self.variable not in df:
            df.loc[:, self.variable] = df.apply(lambda row: binom_test(np.round(row['s1_area_fraction_top'] * row['s1']),
                                                                       np.round(row['s1']),
                                                                       self.aft_map(np.sqrt(row['x']**2 + row['y']**2),
                                                                                    row['z'])[0, 0]),
                                                axis=1)
        return df
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号