hardik27 commited on
Commit
006adf5
·
verified ·
1 Parent(s): de6ce6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -153,6 +153,7 @@ def map_data_to_template(excel_file, mapping_file):
153
  mapped_data = mapped_data[~mapped_data["SchDate"].str.strip().isin(["",None])]
154
 
155
  mapped_data['SOType'] = "R"
 
156
  return mapped_data[["SchDate","SOType","Item Code","Qty","Inventory Category"]]
157
 
158
  def save_mapping_file_to_drive():
@@ -368,7 +369,7 @@ def main():
368
  st.markdown("Final Excel File After Mapping")
369
 
370
  final_excel_file = 'Final Data.xlsx'
371
- mapped_data.to_excel(final_excel_file, index=False)
372
 
373
  if os.path.exists(final_excel_file):
374
  with open(final_excel_file, "rb") as f:
 
153
  mapped_data = mapped_data[~mapped_data["SchDate"].str.strip().isin(["",None])]
154
 
155
  mapped_data['SOType'] = "R"
156
+ mapped_data['SchDate'] = mapped_data['SchDate'].astype("str")
157
  return mapped_data[["SchDate","SOType","Item Code","Qty","Inventory Category"]]
158
 
159
  def save_mapping_file_to_drive():
 
369
  st.markdown("Final Excel File After Mapping")
370
 
371
  final_excel_file = 'Final Data.xlsx'
372
+ mapped_data.to_excel(final_excel_file, index=False,engine='openpyxl')
373
 
374
  if os.path.exists(final_excel_file):
375
  with open(final_excel_file, "rb") as f: