我想检查哪个 Vin 在模块列中有绝对值
我想检查哪个 Vin 在模块列中具有绝对值。如果结果列中有,则无论 Vin 列中出现该数字,我都希望选择“是”。
I want to check which Vin has abs value in column Module. If it has then in the Result column I want Yes wherever that number is present in the column Vin.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以先检查
Module == "abs"
的所有行,然后将结果按Vin
分组,并使用transform('any')True
,则将每个组转换为True
行,否则将转换为False
行:You can first check all the rows where
Module == "abs"
, and then group the result byVin
, and usetransform('any')
to convert each group to rows ofTrue
if the group contains a singleTrue
, rows ofFalse
otherwise: