I have a simple list that want to convert it to excel using pandas. I googled about how to remove NaN, but they all talk about remove either whole row or column. Is there a way to put all the value on the same line?
list = [{'cisco': 15}, {'developer': 15}, {'root': 15}]
df = pd.DataFrame(list)
The output is like this cisco developer root 0 15.0 NaN NaN 1 NaN 15.0 NaN 2 NaN NaN 15.0
But I would like to have it look like this cisco developer root 0 15.0 15.0 15.0