def test_as_dataframe_good_rename():
df_hello, cohort = prep_alt_test_cohort()
# test behavior with rename_cols=True. should not raise a warning
df = cohort.as_dataframe(rename_cols=True, join_with='hello')
res = compare_column_names(expected = strip_column_names(df_hello.columns),
observed = df.columns)
ok_(res, 'column names failed to match expected')
评论列表
文章目录