pandas.DataFrame.squeeze

DataFrame.squeeze(**kwargs)

Squeeze length 1 dimensions.