The following Python functions take an integer argument
n
and produce result sequences of the topn
elements as described in the table below:
top_max( n ) Return the top n
maximum values in the object's sequencetop_min( n ) Return the top
n
minimum values in the object's sequencetop_pos_max( n ) Return the positions of the top
n
maximum values in the object's sequencetop_pos_min( n ) Return the positions of the top
n
minimum 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 ) ...