Get the minimum beginning and maximum ending row indices for the specified columns in this Worksheet.
GetBounds(C1, C2, IncludeMissingValues = True)
The vector contains maximum and minimum value.
#Create Book1 import PyOrigin PyOrigin.LT_execute('newbook name:=Book1') Sheet=PyOrigin.WorksheetPages('Book1').Layers(0) #Set data pArr = [[x for x in range(5)] for x in range(2)] Sheet.SetData(pArr, 0,0) #get worksheet bounds bounds=Sheet.GetBounds(0, 1) print('the minimum and maximum are:') for m in bounds: print(m)
Worksheet::SetUpperBound