obsplus.picks_to_df¶
- obsplus.picks_to_df = {'_pick_extractor': <function _pick_extractor>}¶
A class to extract dataframes from nested object trees.
Generally used to construct summary dataframes from nested object structures such as the obspy Catalog.
- Parameters:
cls – The top-level class the extractor acts on.
required_columns – If not None, assert required columns are in dataframe, and order columns the same as required_columns, with extra columns at the end.
dtypes – A dict of {column name: required data type}. Can also be specified when registering extractors.
pass_dataframe – If True, return dataframes passed to DataFrameExtractor.__call__. This allows the DataFrameExtractor to be idempotent.
column_funcs – Columns that are UTCDateTime objects. Will correctly handle UTCDateTime-able objects (like date-time strings, floats, etc).