Given the following:
df = pd.DataFrame({\'col1\' : [\"a\",\"b\"], \'col2\' : [\"ab\",np.nan], \'col3\' : [\"w\",\"e\"]})
I would l
df.apply(lambda row: '*'.join(row.dropna()), axis=1)