Find cells with data and use as index in dataframe,"df[df.iloc[0].replace('', np.nan).dropna().index]"