I've this Dataframe
df_stack = pd.DataFrame([['age', 0.0417084448844436],
['age', 0.0417084448844436],
['sex', 0.0506801187398187],
['sex', 0.0506801187398187],
['bp', 0.1506801187],
['bp', 0.1506801187]])
I need to get this result
age bp sex
0 0.041708 0.15068 0.05068
1 0.041708 0.15068 0.05068
In SQL we can use a "coalesce" function, that eliminate the null values and pull up the values. Do we have something similar with Pandas? Thank you in advance