get_instance method
Contents
[
Hide
]get_instance
Creates ICellsDataTable from given collection.
Returns
Instance of ICellsDataTable
def get_instance(self, collection):
...
Parameter | Type | Description |
---|---|---|
collection | list | the collection to build table |
get_instance
Creates ICellsDataTable from given sequence of int values.
Returns
Instance of ICellsDataTable
def get_instance(self, vals, column_names):
...
Parameter | Type | Description |
---|---|---|
vals | list | int values to build table |
column_names | list | Column names of the table. Its length can only be either 1(build table by the int values vertically) or length of the int values(build table by the int values horizontally) |
get_instance
Creates ICellsDataTable from given sequence of int values.
Returns
Instance of ICellsDataTable
def get_instance(self, vals, vertial):
...
Parameter | Type | Description |
---|---|---|
vals | list | int values to build table |
vertial | bool | whether build table by the int values vertiacally(true) or horizontally(false) |
get_instance
Creates ICellsDataTable from given sequence of double values.
Returns
Instance of ICellsDataTable
def get_instance(self, vals, column_names):
...
Parameter | Type | Description |
---|---|---|
vals | list | double values to build table |
column_names | list | Column names of the table. Its length can only be either 1(build table by the double values vertically) or length of the double values(build table by the double values horizontally) |
get_instance
Creates ICellsDataTable from given sequence of double values.
Returns
Instance of ICellsDataTable
def get_instance(self, vals, vertial):
...
Parameter | Type | Description |
---|---|---|
vals | list | double values to build table |
vertial | bool | whether build table by the double values vertiacally(true) or horizontally(false) |
get_instance
Creates ICellsDataTable from given sequence of objects.
Returns
Instance of ICellsDataTable
def get_instance(self, vals, column_names):
...
Parameter | Type | Description |
---|---|---|
vals | list | objects to build table |
column_names | list | Column names of the table. Its length can only be either 1(build table by the objects vertically) or length of the objects(build table by the objects horizontally) |
get_instance
Creates ICellsDataTable from given sequence of objects.
Returns
Instance of ICellsDataTable
def get_instance(self, vals, vertial):
...
Parameter | Type | Description |
---|---|---|
vals | list | objects to build table |
vertial | bool | whether build table by the objects vertiacally(true) or horizontally(false) |
See Also
- module
aspose.cells
- class
CellsDataTableFactory