-
Notifications
You must be signed in to change notification settings - Fork 373
Open
Labels
breakingThe proposed change is breaking.The proposed change is breaking.featurenon-breakingThe proposed change is not breakingThe proposed change is not breaking
Milestone
Description
I'm currently working on a small implementation of a Tables.AbstractRow. It's basically a wrapper around an OrderedDict which is a Tables.AbstractRow and defines all the convenience methods of a DataFrameRow, like indexing with Not.
The goal is to make it easier to work with complicated combine calls where to iteratively build up your output. This is actually quite difficult and I think there are a few inconsistencies in the API
transformworks fine withByRow.ByRowreturns a vector ofTables.AbstractRowobjects, which is itself a Table- With
combineusing thesrc => fun => AsTableoutput, I can collapse to get single rows when I defineTables.columntablefor myDataRowtype. However this trick doesn't work when using an anonymous function. With the anonymous function, the output really has to be a matrix, named tuple, or data frame.
This might be an inconsistency in the API.
Regardless, I will move forward with the development of my package and call NamedTuple at the very end of my combine call to get the desired behavior.
Metadata
Metadata
Assignees
Labels
breakingThe proposed change is breaking.The proposed change is breaking.featurenon-breakingThe proposed change is not breakingThe proposed change is not breaking