Trees | Indices | Help |
|
---|
|
object --+ | PrettyTable
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
field_names | |||
align | |||
max_width | |||
start Start index of the range of rows to print |
|||
end End index of the range of rows to print |
|||
sortby Name of field by which to sort rows |
|||
reversesort Controls direction of sorting (ascending vs descending) |
|||
sort_key Sorting key function, applied to data points before sorting |
|||
header Controls printing of table header with field names |
|||
border Controls printing of border around table |
|||
hrules Controls printing of horizontal rules after rows |
|||
int_format Controls formatting of integer data Arguments: |
|||
float_format Controls formatting of floating point data Arguments: |
|||
padding_width The number of empty spaces between a column's edge and its content |
|||
left_padding_width The number of empty spaces between a column's left edge and its content |
|||
right_padding_width The number of empty spaces between a column's right edge and its content |
|||
vertical_char The charcter used when printing table borders to draw vertical lines |
|||
horizontal_char The charcter used when printing table borders to draw horizontal lines |
|||
junction_char The charcter used when printing table borders to draw line junctions |
|||
format Controls whether or not HTML tables are formatted to match styling options |
|||
attributes A dictionary of HTML attribute name/value pairs to be included in the <table> tag when printing HTML |
|||
Inherited from |
|
Return a new PrettyTable instance Arguments: field_names - list or tuple of field names fields - list or tuple of field names to include in displays start - index of first data row to include in output end - index of last data row to include in output PLUS ONE (list slice style) fields - names of fields (columns) to include header - print a header showing field names (True or False) border - print a border around the table (True or False) hrules - controls printing of horizontal rules after rows. Allowed values: FRAME, ALL, NONE int_format - controls formatting of integer data float_format - controls formatting of floating point data padding_width - number of spaces on either side of column data (only used if left and right paddings are None) left_padding_width - number of spaces on left hand side of column data right_padding_width - number of spaces on right hand side of column data vertical_char - single character string used to draw vertical lines horizontal_char - single character string used to draw horizontal lines junction_char - single character string used to draw line junctions sortby - name of field to sort rows by sort_key - sorting key function, applied to data points before sorting reversesort - True or False to sort in descending or ascending order
|
str(x)
|
Start index of the range of rows to print Arguments: start - index of first data row to include in output |
End index of the range of rows to print Arguments: end - index of last data row to include in output PLUS ONE (list slice style) |
Name of field by which to sort rows Arguments: sortby - field name to sort by |
Controls direction of sorting (ascending vs descending) Arguments: reveresort - set to True to sort by descending order, or False to sort by ascending order |
Sorting key function, applied to data points before sorting Arguments: sort_key - a function which takes one argument and returns something to be sorted |
Controls printing of table header with field names Arguments: header - print a header showing field names (True or False) |
Controls printing of border around table Arguments: border - print a border around the table (True or False) |
Controls printing of horizontal rules after rows Arguments: hrules - horizontal rules style. Allowed values: FRAME, ALL, NONE |
Controls formatting of integer data Arguments: int_format - integer format string |
Controls formatting of floating point data Arguments: float_format - floating point format string |
The number of empty spaces between a column's edge and its content Arguments: padding_width - number of spaces, must be a positive integer |
The number of empty spaces between a column's left edge and its content Arguments: left_padding - number of spaces, must be a positive integer |
The number of empty spaces between a column's right edge and its content Arguments: right_padding - number of spaces, must be a positive integer |
The charcter used when printing table borders to draw vertical lines Arguments: vertical_char - single character string used to draw vertical lines |
The charcter used when printing table borders to draw horizontal lines Arguments: horizontal_char - single character string used to draw horizontal lines |
The charcter used when printing table borders to draw line junctions Arguments: junction_char - single character string used to draw line junctions |
Controls whether or not HTML tables are formatted to match styling options Arguments: format - True or False |
A dictionary of HTML attribute name/value pairs to be included in the <table> tag when printing HTML Arguments: attributes - dictionary of attributes |
Add a row to the table Arguments: row - row of data, should be a list with as many elements as the table has fields |
Delete a row to the table Arguments: row_index - The index of the row you want to delete. Indexing starts at 0. |
Add a column to the table. Arguments: fieldname - name of the field to contain the new column of data column - column of data, should be a list with as many elements as the table has rows align - desired alignment for this column - "l" for left, "c" for centre and "r" for right |
Return only those data rows that should be printed, based on slicing and sorting. Arguments: options - dictionary of option settings. |
Return string representation of table in current state. Arguments: start - index of first data row to include in output end - index of last data row to include in output PLUS ONE (list slice style) fields - names of fields (columns) to include header - print a header showing field names (True or False) border - print a border around the table (True or False) hrules - controls printing of horizontal rules after rows. Allowed values: FRAME, ALL, NONE int_format - controls formatting of integer data float_format - controls formatting of floating point data padding_width - number of spaces on either side of column data (only used if left and right paddings are None) left_padding_width - number of spaces on left hand side of column data right_padding_width - number of spaces on right hand side of column data vertical_char - single character string used to draw vertical lines horizontal_char - single character string used to draw horizontal lines junction_char - single character string used to draw line junctions sortby - name of field to sort rows by sort_key - sorting key function, applied to data points before sorting reversesort - True or False to sort in descending or ascending order |
Return string representation of HTML formatted version of table in current state. Arguments: start - index of first data row to include in output end - index of last data row to include in output PLUS ONE (list slice style) fields - names of fields (columns) to include header - print a header showing field names (True or False) border - print a border around the table (True or False) hrules - controls printing of horizontal rules after rows. Allowed values: FRAME, ALL, NONE int_format - controls formatting of integer data float_format - controls formatting of floating point data padding_width - number of spaces on either side of column data (only used if left and right paddings are None) left_padding_width - number of spaces on left hand side of column data right_padding_width - number of spaces on right hand side of column data sortby - name of field to sort rows by sort_key - sorting key function, applied to data points before sorting attributes - dictionary of name/value pairs to include as HTML attributes in the <table> tag |
|
field_names
|
align
|
max_width
|
startStart index of the range of rows to print Arguments: start - index of first data row to include in output
|
endEnd index of the range of rows to print Arguments: end - index of last data row to include in output PLUS ONE (list slice style) |
sortbyName of field by which to sort rows Arguments: sortby - field name to sort by
|
reversesortControls direction of sorting (ascending vs descending) Arguments: reveresort - set to True to sort by descending order, or False to sort by ascending order
|
sort_keySorting key function, applied to data points before sorting Arguments: sort_key - a function which takes one argument and returns something to be sorted
|
headerControls printing of table header with field names Arguments: header - print a header showing field names (True or False)
|
borderControls printing of border around table Arguments: border - print a border around the table (True or False)
|
hrulesControls printing of horizontal rules after rows Arguments: hrules - horizontal rules style. Allowed values: FRAME, ALL, NONE
|
int_formatControls formatting of integer data Arguments: int_format - integer format string
|
float_formatControls formatting of floating point data Arguments: float_format - floating point format string
|
padding_widthThe number of empty spaces between a column's edge and its content Arguments: padding_width - number of spaces, must be a positive integer
|
left_padding_widthThe number of empty spaces between a column's left edge and its content Arguments: left_padding - number of spaces, must be a positive integer
|
right_padding_widthThe number of empty spaces between a column's right edge and its content Arguments: right_padding - number of spaces, must be a positive integer
|
vertical_charThe charcter used when printing table borders to draw vertical lines Arguments: vertical_char - single character string used to draw vertical lines
|
horizontal_charThe charcter used when printing table borders to draw horizontal lines Arguments: horizontal_char - single character string used to draw horizontal lines
|
junction_charThe charcter used when printing table borders to draw line junctions Arguments: junction_char - single character string used to draw line junctions
|
formatControls whether or not HTML tables are formatted to match styling options Arguments: format - True or False
|
attributesA dictionary of HTML attribute name/value pairs to be included in the <table> tag when printing HTML Arguments: attributes - dictionary of attributes
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Mar 30 14:44:56 2015 | http://epydoc.sourceforge.net |