Beispiel #1
0
 def test_row_names2(self):
     data = [
         [-1, -2, -3],
         [1, 2, 3],
         [4, 5, 6],
         [7, 8, 9]
     ]
     sheet = Sheet(data)
     sheet.rownames = ["Row"] * 4
     assert sheet.rownames == ["Row", "Row-1", "Row-2", "Row-3"]
Beispiel #2
0
 def test_rownames(self):
     s = Sheet(self.data, "test", name_rows_by_column=0)
     assert s.rownames == ["Row 0", "Row 1", "Row 2", "Row 3"]
     custom_rows = ["R0", "R1", "R2", "R3"]
     s.rownames = custom_rows
     assert s.rownames == custom_rows