-2
我想轉換休耕SQL語句轉換成大熊貓數據幀在Python如何在SQL SELECT語句轉換成與特定領域和where子句大熊貓數據幀
SELECT sum(money) from df where sex='female'
我無法在大熊貓得到這個
在此先感謝
我想轉換休耕SQL語句轉換成大熊貓數據幀在Python如何在SQL SELECT語句轉換成與特定領域和where子句大熊貓數據幀
SELECT sum(money) from df where sex='female'
我無法在大熊貓得到這個
在此先感謝
df.loc [df.sex =='female','money']。sum()