Problem
Currently, it is not possible to apply a processing function of audinterface.Process or audinterface.Feature to a DataFrame object.
Such a method would be meaningful, as process_index() cannot be efficiently used when a Segment object is passed as segment argument, because labels need to be carried to the resulting dataframe (the resulting index after segmentation has typically additional rows).
Solution
A new method process_dataframe() could solve this.
- If no segmentation is required, the behaviour is very similar to
process_index(), but all labels are kept and attached to the output.
- If a segmentation is required, for each row in the input, the labels are duplicated and attached to all corresponding rows at the output.
@hagenw
Problem
Currently, it is not possible to apply a processing function of
audinterface.Processoraudinterface.Featureto aDataFrameobject.Such a method would be meaningful, as
process_index()cannot be efficiently used when aSegmentobject is passed assegmentargument, because labels need to be carried to the resulting dataframe (the resulting index after segmentation has typically additional rows).Solution
A new method
process_dataframe()could solve this.process_index(), but all labels are kept and attached to the output.@hagenw