I have a DataFrame:
and I wish to convert it to:
I think I have to use groupby and a lambda function. I just can't think of the lambda function
new_df = rwy16_df.groupby('height').to_frame().loc[lambda ]
I have a DataFrame:
and I wish to convert it to:
I think I have to use groupby and a lambda function. I just can't think of the lambda function
new_df = rwy16_df.groupby('height').to_frame().loc[lambda ]