Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def convert_ci(by_line_item_file, combined_file, password, max_rows):
|
|
| 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 |
-
|
| 48 |
combined_df = combined_df_raw.iloc[:, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]].copy()
|
| 49 |
combined_df.columns = [
|
| 50 |
"Tariff_Number", "Country_of_Origin", "Quantity", "Gross_Weight_KG",
|
|
|
|
| 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 = [
|
| 50 |
"Tariff_Number", "Country_of_Origin", "Quantity", "Gross_Weight_KG",
|