def unstack_and_compare(df, column_name):
    unstacked1 = df.unstack([column_name])
    unstacked2 = df.unstack(column_name)
    assert_frame_equal(unstacked1, unstacked2)
def unstack_and_compare(df, column_name):
    unstacked1 = df.unstack([column_name])
    unstacked2 = df.unstack(column_name)
    assert_frame_equal(unstacked1, unstacked2)