danfojs icon indicating copy to clipboard operation
danfojs copied to clipboard

`Series.valueCounts` run into error when all the value are unique

Open kikiatproton opened this issue 3 years ago • 0 comments

Describe the bug Series.valueCounts run into error when all the value are unique

To Reproduce Steps to reproduce the behavior:

  1. Parse a .csv file
dfd.readCSV(file).then((df) => {
    const sf = df[df.columns[0]];
    sf.valueCounts().print();
})
  1. See error IndexError: Row index must contain unique values

Expected behavior Should display all valueCount

Screenshots Screen Shot 2022-08-05 at 6 01 34 PM

kikiatproton avatar Aug 05 '22 22:08 kikiatproton