Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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={
|
| 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 = [
|