A basic example of my current data_frame looks like:
Material Description From
1 Bitumen 0.025
2 Road 0.14
3 Filling 0.24
4 0.82
5 1.55
6 Filling
7 Sand
And I would like to have this data_frame output below:
Material Description From
1 Bitumen 0.025
2 Road 0.14
3 Filling 0.24
4 Filling 0.82
5 Sand 1.55
It would be great to iterate through these cells in the data_frame['Material Description'] and drop the cells and not the entire row. I have tried the code below but unfortunately an Attribute Error occurs.
for q in range(len(data_frame)):
if (data_frame.loc[q, "Material Description"]) == "":
data_frame.loc[q, "Material Description"].drop()
Thanks in advance for your help! :)