-
-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate resource definitions by data source #1386
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #1386 +/- ##
==========================================
+ Coverage 83.17% 83.70% +0.53%
==========================================
Files 61 64 +3
Lines 6762 6896 +134
==========================================
+ Hits 5624 5772 +148
+ Misses 1138 1124 -14
Continue to review full report at Codecov.
|
Split the EIA resource definitions out by form to make it easier to keep track of them. Started incrementally adding EIA-861 tables to the metadata definitions, but not pulling them into the main RESOURCE_METADATA construction yet since they don't work. Also: the EIA 861 data uses multiple different sets of codes to identify the utility "entity type" and they aren't all being recoded right now, so the use of a strict categorical on that column ends up yielding a NA column. Temporarily reverted to StringDtype() to avoid this issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Only question I had was about unknown
and pd.NA
values. I think for code fields like entity_type
it's okay to leave unknown
and not turn it into pd.NA
during the transform.
Getting the table-level metadata integrated into
dev
now will help @katie-lamb close #1253To that end this PR does:
eia
,eia860
,eia861
andeia923
resource modules (they're getting looong).entity_type
field as it is so variable across different data sources and types. See Confirm EIA entity_type designation #669 and Reconcileentity_types_eia
/entity_type
/ ownership category discrepancies in eia860 & eia861 #1392.