The following Python functions take an integer argument
nand produce result sequences of the topnelements as described in the table below:
top_max( n ) Return the top nmaximum values in the object's sequencetop_min( n ) Return the top
nminimum values in the object's sequencetop_pos_max( n ) Return the positions of the top
nmaximum values in the object's sequencetop_pos_min( n ) Return the positions of the top
nminimum values in the object's sequenceExample
Following is an example code snippet demonstrating one of these functions:
cursor = con.cursor("Quote", "by_sym") for quote in cursor: ... hi20Iterator = quote.close.top_max( 20 ) ...