Improve support for reduce
returning nested information
#132
Labels
enhancement
New feature or request
reduce
returning nested information
#132
Feature request
We expect users that are applying their functions via reduce to sometimes want more complex outputs. For example, if I'm applying Lombscargle to all lightcurves in my nested dataset, I may want a result that has a max power column, a frequency of max power column, and a nested column holding the full periodogram. Presently, we don't really support this as we primarily want the user to return a dictionary-style output, which will limit the user towards producing list columns rather than nested columns, for example:
With #131 it would be easier to convert this to a nested output, but I think ideally
reduce
would have a more native ability to produce nested structures for these types of functions. My thinking about how we might try to facilitate this, is to read more into the user defined dictionary output to determine the nestedframe. For example, a user could instead specify thisreduce
function:The json-like nesting of dataframes would signal that the user would like a "quantiles" nested column with a "flux_quantiles" field. I'm not entirely sure on the full implementation plan, but this seems most intuitive from the users perspective.
Also consider #101 as an alternate interface.
Before submitting
Please check the following:
The text was updated successfully, but these errors were encountered: