patches_to_df

function of dascore.utils.patch source

patches_to_df(
    patches: collections.abc.Sequence[Patch] | BaseSpool | DataFrame ,
)-> ‘pd.DataFrame’

Return a dataframe.

Parameters

Parameter Description
patches A sequence of :class:dascore.Patch

Returns

A dataframe with the attrs of each patch converted to a columns plus a field called ‘patch’ which contains a reference to the patches.