Skip to content
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

add straggler dbf-only factoids into ferc1 table metadata #2716

Merged
merged 5 commits into from
Jul 7, 2023

Conversation

cmgosnell
Copy link
Member

@cmgosnell cmgosnell commented Jul 7, 2023

PR Overview

I started with just adding the dfb-only metadata fields into each table's metada doing it in a bespokey way. will probably parameterize this adding of these guys.

PR Checklist

  • Merge the most recent version of the branch you are merging into (probably dev).
  • All CI checks are passing. Run tests locally to debug failures
  • Make sure you've included good docstrings.
  • For major data coverage & analysis changes, run data validation tests
  • Include unit tests for new functions and classes.
  • Defensive data quality/sanity checks in analyses & data processing functions.
  • Update the release notes and reference reference the PR and related issues.
  • Do your own explanatory review of the PR to help the reviewer understand what's going on and identify issues preemptively.

@zaneselvans zaneselvans linked an issue Jul 7, 2023 that may be closed by this pull request
"ferc_account": [pd.NA],
"xbrl_factoid_original": ["accumulated_deferred_income_taxes"],
"intra_table_calc_flag": [True],
"row_type_xbrl": ["report_value"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be "reported_value" in all of the fixes.

Comment on lines 2369 to 2376
{
"calc_component_to_replace": {},
"calc_component_new": {
"name": "unappropriated_undistributed_subsidiary_earnings_previous_year",
"weight": 1.0,
"source_tables": ["retained_earnings_ferc1"],
},
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these changes to the calculation fixes related to the dbf-only facts?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah no this is just one of the many instances of factoids that weren't actually in the data.

"intra_table_calc_flag": True,
"row_type_xbrl": "report_value",
}
for dbf_onl_fact in ["special_funds_all", "nuclear_fuel"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The computer doesn't care but did you mean for this to be dbf_only_fact?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol yes

@cmgosnell cmgosnell merged commit a87dda8 into interdimension_linkages Jul 7, 2023
4 of 6 checks passed
@cmgosnell cmgosnell deleted the add_dbf_only_metadata_factoids branch July 7, 2023 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Inject DBF-only factoids into calculation metadata
2 participants