Open ynfle opened 3 years ago
I'm not quite sure what you mean by "aligned/joined" in this context? Do you perhaps have a small example?
I am following this to try and make a Naive Bayes Classifier in nim using NimData and in the method calc_prior
they group the data by the target class which isn't possible without a join if the data and the target are separated.
Here is a link to Pandas groupBy
EDIT: Forgot the link https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.groupby.html
Sorry for the delay! So many things to do...
In general NimData already has a rudimentary (and not well documented) implementation of groupBy
:
which isn't possible without a join if the data and the target are separated
Yes you'd probably have to combine the target column with the data columns first to make it work.
Is it possible to pass in a
DataFrame
that can be aligned/joined with the originalDataframe
to allow for a list of values to group by?Thanks for you wonderful package