Open korelasidata opened 9 months ago
@cbharp See corrections added to bullet points 3 and 4 above. Note the bold/italic portions that I inserted/changed.
@cbharp
In census_level_hmda_cat_summaries_long
and census_level_sba_cat_summaries_long
:
[x] Insert a new column called Census_Tract_no_decimal
that excludes the decimal point. So Instead of "0301.02" we would have "030102". This new column should appear immediately after the existing Census Tract column.
[x] Re-run the code that generates the Excel notebooks, and re-publish the updated files to the Google folder.
Data updates
[x] 1. In the tabular summaries notebook, adjust the FDIC bank branch details so that the overall bank name is listed as a column separately from the bank branch name. For example, in the samples below, all of these would have the same bank name "American First National Bank ", and then in a separate column we would have the branch name.
[x] 2. Update
hmda_lei_count
logic so that the count variable name isnumber_of_hmda_loans
. Also change name of the variable tohmda_loan_count
.[x] 3. Left join HMDA Panel data to HMDA LAR data on
lei
to get bank names (respondent_name
) inserted into the LAR tablebank_name
lei
values in HMDA get matched? What is the count/percentage that were not matched? Please post this response as a comment on the PR.[x] 4. SBA data already has a
BankName
field that provides the name of the bank. (Whew!!) To facilitate the mapping between HMDA and SBA and to get consistency between bank names in FDIC tables, left join SBA data to FDIC locations data on the FDIC identifiers below so that the Institution Name is inserted into the SBA datasetBankFDICNumber
mapped to...FDIC Certificate #
[x] 5. Create new dictionaries called
census_level_hmda_cat_summaries_long
andcensus_level_sba_cat_summaries_long
that are modified versions ofcensus_level_hmda_cat_summaries
andcensus_level_sba_cat_summaries
such that the data are presented in long format instead of wide formatTotal
column here.unstack
you previously used to get them in wide formatExpected result converts this (wide format)...
... to this (long format)...