Best way to relate utilities and plants #2249
-
What is the best way to relate utilities and plants? I figured the
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This isn't a lot of context to work with. Are you talking about just within the EIA data? What aspect of the plants and utilities do you want to bring together? In EIA, utilities have a couple of different kinds of relationships with plants:
The plants_entity_eia = pd.read_sql("plants_entity_eia", pudl_engine).convert_dtypes(convert_floating=False)
plants_eia860 = pd.read_sql("plants_eia860", pudl_engine).convert_dtypes(convert_floating=False)
plants_eia = pd.merge(plants_entity_eia, plants_eia860, on="plant_id_eia")
utilities_entity_eia = pd.read_sql("utilities_entity_eia", pudl_engine).convert_dtypes(convert_floating=False)
utilities_eia860 = pd.read_sql("utilities_eia860", pudl_engine).convert_dtypes(convert_floating=False)
utilities_eia = pd.merge(utilities_entity_eia, utilities_eia860, on="utility_id_eia")
plants_utils_eia = pd.merge(plants_eia, utilities_eia, on="utility_id_eia") (though without additional work you'll get column name collisions and have some The |
Beta Was this translation helpful? Give feedback.
This isn't a lot of context to work with. Are you talking about just within the EIA data? What aspect of the plants and utilities do you want to bring together?
In EIA, utilities have a couple of different kinds of relationships with plants:
utility_id_eia
that appears in theplants_eia860
table.ownership_eia860
table identifies their owners usingutility_id_eia
though I think there it may be calledowner_id_eia
.plants_eia860
table there's also atransmission_distribution_owner_id
which is autility_id_eia
and indicates what T&D utility owns the line that the pla…