test_preprocess.py 文件源码

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

项目:rsmtool 作者: EducationalTestingService 项目源码 文件源码
def test_filter_on_flag_column_nothing_left():
    bad_df = pd.DataFrame({'spkitemid': ['a1', 'b1', 'c1', 'd1'],
                           'sc1': [1, 2, 1, 3],
                           'feature': [2, 3, 4, 5],
                           'flag1': [1, 0, 20, 14],
                           'flag2': [1, 1.0, 'TD', '03']})

    flag_dict = {'flag1': [1, 0, 14], 'flag2': ['TD']}

    df_new, df_excluded = filter_on_flag_columns(bad_df, flag_dict)
    import ipdb
    ipdb.set_trace()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号