I wanna delete missing values from a certain column:
#deleting rows with missing values
data_excel.dropna(subset=['Budget Betrag'])
then I wanna check whether it's working with
print(data_excel)
But with print(data_excel)
the drop.na code doesn't show up.
I just see the changes
when i use print(data_excel.dropna(subset=['Budget Betrag']))
What am I doing wrong? I also deleted columns before and i could use the print(data_excel)
properly.
Do this:
data_excel = data_excel.dropna(subset=['Budget Betrag'])
print(data_excel)
otherwise the .dropna()
isn't stored on your dataframe.