check_missing_metadata
Documentation for eth_defi.research.wrangle_vault_prices.check_missing_metadata function.
- check_missing_metadata(rows, price_ids, prices_df, logger=<built-in function print>)
Check that we have metadata for all vaults in the prices DataFrame.
Vault id is in format:
56-0x10c90bfcfb3d2a7ae814da1548ae3a7fc31c35a0If there are vaults with price data but no metadata, they are logged at error level and their IDs returned so the caller can drop them.
- Parameters
rows (dict) – Metadata rows from vault database
prices_df (pandas.DataFrame) – The full prices DataFrame, used to extract context for missing vaults.
price_ids (pandas.Series) –
- Returns
Set of vault IDs that are missing from the metadata. These should be dropped from the price data before further processing.
- Return type