答:df.query("amount >= @limit") 可按写好的表达式筛数据,@limit 引用 Python 中的变量。有空格的列名可在表达式中加反引号。
题干与完整题解免费阅读第 1 / 1 页
本页 1 道,共 1 道浏览其他领域
答:df.query("amount >= @limit") 可按写好的表达式筛数据,@limit 引用 Python 中的变量。有空格的列名可在表达式中加反引号。