这个问题在这里已经有了答案:
根据提供的列表筛选数组列(1个答案)
20天前关门了。
架构:
root
|-- group: struct (nullable = true)
| |-- name: string (nullable = true)
| |-- tags: array (nullable = true)
| | |-- element: string (containsNull = true)
``` `tags` 会像这样:
1 ["Cat", "Dog", "Mouse"]
2 []
3 ["Cat"]
4 ["Zebra"]
如果其中一个 `["Cat", "Dog"]` 出现了。应用此规则后,将保留以下行:
1 ["Cat", "Dog", "Mouse"]
3 ["Cat"]
1条答案
按热度按时间mlnl4t2r1#
哪里
df
你的数据框里有你的数据吗你可以使用数组重叠来过滤你的标签