Closed zaneselvans closed 1 year ago
self.params
has already been set when we're normalizing the metadata.name
column to reflect whatever it means in the table at hand.Ferc1AbstractTableTransformer.normalize_xbrl_metadata()
method,super()
method and then applies its own changes on top of them.process_xbrl_metdata()
and not normalize_xbrl_metadata()
@zschira has updated the XBRL taxonomy extraction to group the metadata by table, which will simplify it's usage in table transformers. This new structure appears in v0.7.0 of catalyst-cooperative/ferc-xbrl-extractor#38
extract_xbrl_metadata()
function also take aFerc1Settings
object, and return a dictionary of dataframes using the same structure as the XBRL instant/duration table extraction?Plan
Ferc1Settings
to the XBRL metadata extract function. Extract only the relevant metadata objects.TableTransformer
class.Ferc1AbstractTableTransformer
class method or helper function that's called by__init__()
xbrl_fact_name
as appropriate for the class (store new name as a parameter?)Notes / Questions
ElectricEnergySourcesFerc1TableTransformer.drop_invalid_rows()
was dropping all rows because its parameters had not been updated to useenergy_mwh
rather thanenergy_source_mwh
. We need validations that will catch this kind of thing and fail loudly if we mess up.process_dbf()
but we don't need to drop the sources columns in the dispositionsprocess_dbf()
? Shouldn't these transformers be symmetric?record_id
field in the electric energy sources / dispositions tables.xbrl_factoid
withinmerge_xbrl_metadata()
? Does the rename need to be separately parameterized? Based on current examples it seems like we can always rename thexbrl_factoid
column to whatever column is named inMergeXbrlMetadata.on
.