Javascript Count Unique Values Pandas Dataframe Drop