root
|-- _id: string (nullable = true)
|-- h: string (nullable = true)
|-- inc: string (nullable = true)
|-- op: string (nullable = true)
|-- ts: string (nullable = true)
|-- webhooks: struct (nullable = false)
| | |-- index: string (nullable = false)
| | |-- failed_at: string (nullable = true)
| | |-- status: string (nullable = true)
| | |-- updated_at: string (nullable = true)
如何通过从列表获取输入从(webhooks)中删除列例如filterlist:list[string]=list(“index”,“status”)。有没有什么方法可以像中间模式不会改变最终模式那样迭代行呢
root
|-- _id: string (nullable = true)
|-- h: string (nullable = true)
|-- inc: string (nullable = true)
|-- op: string (nullable = true)
|-- ts: string (nullable = true)
|-- webhooks: struct (nullable = false)
| | |-- index: string (nullable = false)
| | |-- status: string (nullable = true)
2条答案
按热度按时间cclgggtu1#
检查以下代码。
输出
iovurdzv2#
也可以看看https://stackoverflow.com/a/39943812/2204206
在删除嵌套较深的列时会更方便