Marthee commited on
Commit
193d145
·
verified ·
1 Parent(s): 6f4463e

Update Doors_Schedule.py

Browse files
Files changed (1) hide show
  1. Doors_Schedule.py +3 -2
Doors_Schedule.py CHANGED
@@ -124,9 +124,10 @@ def row_clmn_indices(column_matches):
124
  return clm_idx, starting_row_index
125
 
126
 
127
- def generate_current_table_without_cropping(clm_idx,df):
128
  selected_df = df.iloc[:, clm_idx]
129
  print("hello I generated the selected columns table without cropping")
 
130
  return selected_df
131
 
132
  def column_name_index(clm_idx):
@@ -198,7 +199,7 @@ def get_selected_columns(dfs):
198
  selected_columns.append((selected_columns_new, dfs[i],clm_idx, clmn_name, starting_row_index))
199
  #details in the same table
200
  if len(dfs[i]) >10:
201
- selected_columns_new = generate_current_table_without_cropping(clmn_idx,dfs[i])
202
  selected_columns.append((selected_columns_new, dfs[i],clm_idx, clmn_name, starting_row_index))
203
 
204
  #IN CELLS
 
124
  return clm_idx, starting_row_index
125
 
126
 
127
+ def generate_current_table_without_cropping(clm_idx, clmn_name, df):
128
  selected_df = df.iloc[:, clm_idx]
129
  print("hello I generated the selected columns table without cropping")
130
+ selected_df.columns = clmn_name
131
  return selected_df
132
 
133
  def column_name_index(clm_idx):
 
199
  selected_columns.append((selected_columns_new, dfs[i],clm_idx, clmn_name, starting_row_index))
200
  #details in the same table
201
  if len(dfs[i]) >10:
202
+ selected_columns_new = generate_current_table_without_cropping(clmn_idx, clmn_name, dfs[i])
203
  selected_columns.append((selected_columns_new, dfs[i],clm_idx, clmn_name, starting_row_index))
204
 
205
  #IN CELLS