Open Amnesiac9 opened 10 months ago
@Amnesiac9 can you please also add _LAST
aggregation? Thanks
We could argue that _LAST is equivalent of sorting the dataframe in reverse order and applying _FIRST, but it would make sense to add it as a separate option for the completion.
Done. Still need to refactor the aggregation testing now to test both of these.
_FIRST will include the first found value in a series for that column, this allows you to keep data from columns that may be mismatched but you'd like to include the first value found after grouping by another column.
Trying to provide the equivalent of this from pandas:
In Go:
Tests need to be updated, but someone more similar with the code base might see issues with this change. Let me know.
Also, I could not find where the name of the Aggregation type is stored, but this doesn't add "_COUNT" to the original column name like the rest do. Instead, it adds the full type including the number value of the aggregation type.