I need to query an HDF5
file with where
clause with 3 conditions, one of the condition is a list with a length of 30:
myList = list(xrange(30))
h5DF = pd.read_hdf(h5Filename, 'df', where='index=myList & date=dateString & time=timeString')
The query above gives me ValueError: too many inputs
and the error is reproducible.
If I reduce length of the list to 29 (three conditions):
myList = list(xrange(29))
h5DF = pd.read_hdf(h5Filename, 'df', where='index=myList & date=dateString & time=timeString')
OR number of conditions to only two (list length of 30):
then it executes fine:
myList = list(xrange(30))
h5DF = pd.read_hdf(h5Filename, 'df', where='index=myList & time=timeString')
Is this a known limitation? pandas documentation at http://pandas.pydata.org/pandas-docs/dev/generated/pandas.io.pytables.read_hdf.html doesn't mention about this limitation and seems like after searching this forum nobody encounter this limitation yet.
Version is pandas 0.15.2
. Any help is appreciated.