joycecast commited on
Commit
eb76eb3
·
verified ·
1 Parent(s): 40abc98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def convert_ci(by_line_item_file, combined_file, password, max_rows):
43
  mawb = invoice.iloc[8, 20] # U9 = 8th row, 20th col (0-indexed)
44
  invoice_no = str(merged_value) if pd.notna(merged_value) else ""
45
 
46
- combined_df_raw = pd.read_excel(combined_file.name, skiprows=10, header=None, dtype={1: str, 2: str, 3: str, 4: str, 5: str, 6: str, 7: str, 8: str, 9: str, 10: str, 12: str})
47
  # combined_df_raw = combined_df_raw.iloc[:-3] # drop last 3 rows
48
  combined_df = combined_df_raw.iloc[:, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]].copy()
49
  combined_df.columns = [
 
43
  mawb = invoice.iloc[8, 20] # U9 = 8th row, 20th col (0-indexed)
44
  invoice_no = str(merged_value) if pd.notna(merged_value) else ""
45
 
46
+ combined_df_raw = pd.read_excel(combined_file.name, skiprows=10, header=None, dtype={10: str, 12: str})
47
  # combined_df_raw = combined_df_raw.iloc[:-3] # drop last 3 rows
48
  combined_df = combined_df_raw.iloc[:, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]].copy()
49
  combined_df.columns = [