This is the code that i am trying to convert to Pandas:
select geo, region, sum(case when year(txn_date)>=2020 then revenue else 0 end) as ytd_rev, sum(ca