RMI-PACTA / pacta.multi.loanbook

Calculate PACTA climate metrics across multiple loan books.
https://rmi-pacta.github.io/pacta.multi.loanbook/
Other
0 stars 0 forks source link

enable `by_group` for `run_pacta` #108

Closed jacobvjk closed 1 month ago

jacobvjk commented 1 month ago

depends on #109

cjyetman commented 1 month ago

@jacobvjk I think I got confused at some point while reviewing this, and now I don't really understand the difference between (or need for both) by_group and by_group_value. Can you explain that a bit?

jacobvjk commented 1 month ago

@jacobvjk I think I got confused at some point while reviewing this, and now I don't really understand the difference between (or need for both) by_group and by_group_value. Can you explain that a bit?

by_group is the column name of the variable you want to group the loan books by and is provided by the user. by_group_value is the set of values this variable can have. It is mainly used in loops over all values of by_group and is derived automatically.

If you set something like by_group = "net_zero_pledge", then by_group_values might be "yes" and "no", indicating whether or not a bank has a net zero pledge. Some calculations will produce outputs for each of the values separately.