This is not quite right. polars.DataFrame.unique deduplicates rows. It will not deduplicate the columns index where there are 2 columns with the same name.
polars.DataFrame.unique