I am trying to convert SQL query into equivalent python pandas. The SQL query is
select count(*),sum(days) into :_cnt_ML_2R, :_pd_QL_1R
from _gm_Qr_bfr_mnt
where x=1 and y=1 and input(code,8.) in (70001:73599)
Now I was trying to convert it into equivalent python pandas.
For SQL select count(*) from _gm_Qr_bfr_mnt equivalent panda is pd.Series(_gm_Qr_bfr_mnt.shape[0])
and for SQL select sum(days) from _gm_Qr_bfr_mnt equivalent panda is pd.Series(__gm_Qr_bfr_mnt['days'].sum())
but I am unable to convert the INTO from SQL to pandas along with WHERE condition.
Need guidance on that how to covert this to the equivalent pandas.