pyexcel.internal.sheets.Column

class pyexcel.internal.sheets.Column(matrix)[source]

Represent columns of a matrix

“example.csv”
1 2 3
4 5 6
7 8 9

Let us manipulate the data columns on the above data matrix:

>>> import pyexcel as pe
>>> data = [[1,2,3], [4,5,6], [7,8,9]]
>>> m = pe.internal.sheets.Matrix(data)
>>> m.column[0]
[1, 4, 7]
>>> m.column[2] = [0, 0, 0]
>>> m.column[2]
[0, 0, 0]
>>> del m.column[1]
>>> m.column[1]
[0, 0, 0]
>>> m.column[2]
Traceback (most recent call last):
    ...
IndexError
__init__(matrix)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(matrix) Initialize self.
format([column_index, formatter, format_specs]) Format a column
get_converter(theformatter) return the actual converter or a built-in converter
select(indices) Examples: