5 May
2004
5 May
'04
5:01 p.m.
Philip Kilner wrote:
Hi List,
Have developed a parameter driven process which is driven by a list of sets of parameters listed in a tiny table. Am trying to find the correct syntax to pull out a given column where the index is specified, in a python script.
Can anyone give me a clue, or point to a fuller example than those in the TinyTable docs please?
Say you have: TinyTable : mytable Columns : mykey myvalue mykey myvalue --------------- "1" "One" "2" "Two" Then: value1 = mytable(mykey="1")[0]['myvalue'] value1 = mytable(mykey="2")[0]['myvalue'] Mark