pyexcel.internal.sheets.Row
- class pyexcel.internal.sheets.Row(matrix)[source]
Represent row of a matrix
“example.csv” 1
2
3
4
5
6
7
8
9
Above column manipulation can be performed on rows similarly. This section will not repeat the same example but show some advance usages.
>>> import pyexcel as pe >>> data = [[1,2,3], [4,5,6], [7,8,9]] >>> m = pe.internal.sheets.Matrix(data) >>> m.row[0:2] [[1, 2, 3], [4, 5, 6]] >>> m.row[0:3] = [0, 0, 0] >>> m.row[2] [0, 0, 0] >>> del m.row[0:2] >>> m.row[0] [0, 0, 0]
- __init__(matrix)
Methods
__init__
(matrix)format
([row_index, formatter, format_specs])Format a row
get_converter
(theformatter)return the actual converter or a built-in converter
select
(indices)Delete row indices other than specified