Hi Ross, and welcome onboard! A Saturday 01 September 2007, Ross Bates escrigué: > Hi All - I'm new to Python and I am learning the language by > experimenting with PyTables, so this question might seem simple. > > I want to be able to execute a table.where condition with a list of > values for the column. Like a SQL 'in' statement > > So instead of this repeating the column > > table.where("(src_id == 'x') | ((src_id) == 'y')") > > it would be something like this: > > table.where("(src_id == 'x' | 'y' ") > > I've tried a variety of things and just want to make sure there is > not something I'm missing.
Currently, you should keep using the former expression. The later expression is actually a shortcut of the first one, but this is not supported by PyTables (actually, by the integrated numexpr package), and it is not in our plans to implement it anytime soon. Cheers, -- >0,0< Francesc Altet http://www.carabos.com/ V V Cárabos Coop. V. Enjoy Data "-" ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users