Write a function clean_dataframe(df) that handles: (1) drops exact duplicate rows, (2) fills numeric nulls with column median, (3) fills string nulls with "unknown", (4) strips leading/trailing whitespace from all string columns. Return the cleaned DataFrame.
Sign in to see what a strong answer covers and to get AI feedback on your own.