Getting error while deleting columns

There are some columns which contain large number of null values and i want to delete these columns but i am getting error can someone help me to fix this error.

Use df.drop() to delete columns from a dataframe. Check the link below to know more about df.drop