def step_impl(context, column_levels, index_levels): try: context.parsed = table_to_dataframe(context.input, column_levels=column_levels, index_levels=index_levels) except Exception as e: context.exception = e
def step_impl(context, column_levels, index_levels): context.parsed = table_to_dataframe( context.input, column_levels=column_levels, index_levels=index_levels, collapse_empty_index_levels=False, )
def step_impl(context): pdt.assert_frame_equal( context.parsed, table_to_dataframe(context.table, column_levels=2, index_levels=2))
def step_impl(context, column_levels, index_levels): context.parsed = table_to_dataframe(context.input, column_levels=column_levels, index_levels=index_levels)