Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将休闲 SQL 语句转换为 python 中的 pandas 数据框
SELECT sum(money) from df where sex='female'
我无法在熊猫中得到这个
提前致谢
df.loc[df.sex=='女','钱'].sum()