Remove duplicate rows from DT

Hi forum,
How to remove duplicate rows from datatable?
I used dt.DefaultView.ToTable but the duplicate rows are not removing

Hi @Steven_ds_55
to remove duplicate rows from datatable use this:
dt = dt.DefaultView.ToTable(True)

True : ensures only distinct rows remain

1 Like

@Steven_ds_55

you have a remove duplicate rows activity

cheers

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.