Skip to content

Commit

Permalink
Update vehicle_type_choice_annotate_choosers_preprocessor.csv
Browse files Browse the repository at this point in the history
Removed @ sign from expressions in vehicle type choice chooser preprocessor
  • Loading branch information
JoeJimFlood authored May 10, 2024
1 parent a810722 commit ca1be0e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ number of household Hybrid,num_hh_Hybrid,"df[df['already_owned_veh'].str.contain
number of household BEV,num_hh_BEV,"df[df['already_owned_veh'].str.contains('BEV', na=False)].groupby('household_id').size().reindex(df.household_id).fillna(0)"
number of household PEV,num_hh_PEV,"df[df['already_owned_veh'].str.contains('PEV', na=False)].groupby('household_id').size().reindex(df.household_id).fillna(0)"
number of household EVs,num_hh_EV,"num_hh_BEV + num_hh_PEV"
household income adjusted to 2017$,income17,"@np.where(df.income < 0, df.income, df.income/1.217)"
PEV Rebate amount,PEV_rebate,"@np.where(df.poverty <= LowIncomeEVRebateCutoff, LowIncomePEVRebate, np.where(df.poverty <= MedIncomeEVRebateCutoff, MedIncomePEVRebate, 0))"
BEV Rebate amount,BEV_rebate,"@np.where(df.poverty <= LowIncomeEVRebateCutoff, LowIncomeBEVRebate, np.where(df.poverty <= MedIncomeEVRebateCutoff, MedIncomeBEVRebate, 0))"
household income adjusted to 2017$,income17,"np.where(df.income < 0, df.income, df.income/1.217)"
PEV Rebate amount,PEV_rebate,"np.where(df.poverty <= LowIncomeEVRebateCutoff, LowIncomePEVRebate, np.where(df.poverty <= MedIncomeEVRebateCutoff, MedIncomePEVRebate, 0))"
BEV Rebate amount,BEV_rebate,"np.where(df.poverty <= LowIncomeEVRebateCutoff, LowIncomeBEVRebate, np.where(df.poverty <= MedIncomeEVRebateCutoff, MedIncomeBEVRebate, 0))"

0 comments on commit ca1be0e

Please sign in to comment.