We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1772e3 commit 7d023e2Copy full SHA for 7d023e2
src/power_grid_model_io/data_stores/excel_file_store.py
@@ -92,11 +92,7 @@ def sheet_loader():
92
columns = list(preview.columns)
93
dtype = {}
94
for col in columns:
95
- if (
96
- col == "Name"
97
- or col == "InObject.Name"
98
- or (isinstance(col, tuple) and (col[0] == "Name" or col[0] == "InObject.Name"))
99
- ):
+ if "Name" in str(col) or (isinstance(col, tuple) and ("Name" in str(col[0]))):
100
dtype[col] = str
101
sheet_data = xls_file.parse(xls_sheet_name, header=self._header_rows, dtype=dtype)
102
sheet_data = self._remove_unnamed_column_placeholders(data=sheet_data)
0 commit comments