substitute for data.T.drop_duplicates().T code example Example: df remove duplicate rows df = df.drop_duplicates() p