csep.core.catalogs.CSEPCatalog.from_dataframe

classmethod CSEPCatalog.from_dataframe(df, **kwargs)

Creates catalog from dataframe. Dataframe must have columns that are equivalent to whatever fields the catalog expects in the catalog dtype.

For example:

cat = CSEPCatalog() df = cat.get_dataframe() new_cat = CSEPCatalog.from_dataframe(df)

Parameters:
Returns:

Catalog