rslt_df = filtered_dffiltered_dfpropertystrcontainsABCDEFGH &filtered_dfname~isinair请解释这一行代码
这行代码的作用是从filtered_df中选择符合以下条件的行:
- "property"列的值中包含"A"、"B"、"C"、"D"、"E"、"F"、"G"、"H"中的任意一个字符。
- "name"列的值不为"air"。
其中,"~isin"表示排除"isin"函数选择的值,即选择不为"air"的行。
原文地址: https://www.cveoy.top/t/topic/bLrp 著作权归作者所有。请勿转载和采集!