danfojs icon indicating copy to clipboard operation
danfojs copied to clipboard

find index function suggested

Open Seandump101 opened this issue 3 years ago • 0 comments

It would be very useful to have a built in find index of specific column by value function. maybe something like this: "Dataframe.findIndex "

In Js it would be:

function findIndex(colname,value) { // index of column with specific value let query_df = df.query(df[colname].eq(value)).index; return query_df; }

Seandump101 avatar Oct 26 '22 22:10 Seandump101