Hi,
I am trying to filter the hail table based on multiple conditions. The conditions are dynamic and change from file to file. We are passing those conditions on a list.
Ex: lst = [‘a’,‘b’,‘c’,‘d’,‘e’,‘f’,‘g’,‘h’,‘i’,…‘y’,‘z’]
current code snippet:
ht = ht.filter((ht[‘xyz’] == “a”) | (ht[‘xyz’] == “b”) |…| (ht[‘xyz’] == “z”) |(hl.is_missing(ht[‘xyz’])) )
Is there a way to filter using values in the list?
Regards,
Gopi