I tried to drop a column and its corresponding row in a data frame in pandas using .drop(). But its dropping only the column and not the corresponding row that has the column value. For ex. I have unknown genre as a column and corresponding to it I have a movie as a row. When i drop the unknown column only the column is deleted but the movie still exist. I want to drop both the column and its corresponding row. Is there a single command to do the same.
Please find below the attachment of the dataframe