Duplicates are rows that represent the same observation recorded several times. They distort counts and means. You detect them with duplicated() on all columns or on a specific key, then remove them with drop_duplicates() after checking that they really are errors.
Example
df = df.drop_duplicates(subset=["id_commande"])