I am using Python 2.7, and trying to perform a PyTables query:
#Here the condition
selectedIndex = [1,6,7,9]
condition = 'IndexColumn in selectedIndex'
#here the query
for x1 in tab.where(condition,selectedIndex):
...
...
...
And I am getting:
TypeError: argument of type 'VariableNode' is not iterable
From the documentation about pytables, I am trying to use this:
Table.where(condition, condvars=None, start=None, stop=None, step=None)
And that:
condition = 'col1 == "AAAA"'
for record in table.where(condition): # TypeError in Python3
#do something with "record"
What I am doing wrong?