mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
done with ha4
This commit is contained in:
parent
3bad76fa0e
commit
46ce7bafd4
1 changed files with 3 additions and 9 deletions
|
|
@ -243,21 +243,13 @@ def get_ha_4_data(data, cleaned, cleaning_data, created_at):
|
|||
def analyse_ha_4(results_df, data):
|
||||
results_df_social = results_df[results_df["tenure"] == "Rented (social)"]
|
||||
|
||||
results_df_social["tenure"].value_counts()
|
||||
results_df_social["property_type"].value_counts()
|
||||
|
||||
n_identified = (results_df_social["gbis_eligible"] | results_df_social["eco4_eligible"]).sum()
|
||||
n_eco4 = results_df_social["eco4_eligible"].sum()
|
||||
n_gbis = results_df_social[~results_df_social["eco4_eligible"]]["gbis_eligible"].sum()
|
||||
|
||||
eco_eligibile = results_df_social[results_df_social["eco4_eligible"]]
|
||||
eco_eligibile["walls"].value_counts()
|
||||
eco_eligibile["roof"].value_counts()
|
||||
|
||||
eco_eligibile[eco_eligibile["walls"] == "Cavity wall, as built, insulated"]
|
||||
|
||||
results_df_social[results_df_social["gbis_eligible"] | results_df_social["eco4_eligible"]]["tenure"].value_counts()
|
||||
|
||||
results_df_social["eligibility_classification"].value_counts()
|
||||
|
||||
future_possibilities_eco = results_df[
|
||||
(results_df["eco4_eligible_future"] == True) & (~(results_df["gbis_eligible"] | results_df["eco4_eligible"]))
|
||||
|
|
@ -268,6 +260,8 @@ def analyse_ha_4(results_df, data):
|
|||
~(results_df["gbis_eligible"] | results_df["eco4_eligible"]))
|
||||
].copy()
|
||||
|
||||
total_future_possibilities = future_possibilities_eco.shape[0] + future_possibilities_gbis.shape[0]
|
||||
|
||||
|
||||
def app():
|
||||
data = load_ha_4()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue