|
@@ -24,4 +24,12 @@ class DataLoaderExcel(DataLoaderBase):
|
|
|
|
|
|
def get_data(self, file_path: str, sheet_name: str = 0) -> pd.DataFrame:
|
|
|
df = pd.read_excel(file_path, sheet_name=sheet_name, index_col=False)
|
|
|
+ columns = df.columns.to_list()
|
|
|
+ columns_new = []
|
|
|
+ for idx, column in enumerate(columns):
|
|
|
+ if idx != 0 and "Unnamed:" in column:
|
|
|
+ columns_new.append(columns_new[-1])
|
|
|
+ else:
|
|
|
+ columns_new.append(column)
|
|
|
+ df.columns = columns_new
|
|
|
return df
|