jtablesaw / tablesaw

Java dataframe and visualization library
https://jtablesaw.github.io/tablesaw/
Apache License 2.0
3.53k stars 641 forks source link

Find last index of element in column #1212

Closed eliddan closed 1 year ago

eliddan commented 1 year ago

Description

Adds a new method lastIndexOf in Column to find the last index of a given occurence in a column. It comes in addition to indexOf. I find it usefull, especialy when working with time series.

Testing

Comes with a unit test similar to what exists for indexOf.