From 3d933d2abe556a822a75ed6c9568f6c8c8a28d7a Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Sun, 20 Aug 2023 22:53:32 +1000 Subject: [PATCH] Minor fix --- src/ifccsv/ifccsv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifccsv/ifccsv.py b/src/ifccsv/ifccsv.py index 17bf28c58d..a4784be867 100755 --- a/src/ifccsv/ifccsv.py +++ b/src/ifccsv/ifccsv.py @@ -129,7 +129,7 @@ class IfcCsv: df = self.export_pd() for col_index, col in enumerate(df.columns): # Assuming the first row of the table contains headers - header_cell = first_table.getElementsByType(TableRow)[0].getElementsByType(TableCell)[col_index] + header_cell = self.get_col(first_table.getElementsByType(TableRow)[0], col_index) self.set_cell_value(header_cell, col) # Replace existing table data with data from DataFrame