mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Minor fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user