How do i write this in python and preferably in pandas?(Assume that i am dealing with a dataframe)

后端 未结 0 1497
轻奢々
轻奢々 2021-01-14 14:34

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         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题