Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -95,7 +95,7 @@ def map_data_to_template(excel_file, mapping_file):
|
|
95 |
extracted_data[['SchDate','Qty']]= pd.DataFrame(extracted_data['Date Qty'].to_list(), index= extracted_data.index)
|
96 |
extracted_data = extracted_data.drop('Date Qty',axis=1)
|
97 |
extracted_data = extracted_data[~extracted_data['SchDate'].isna()]
|
98 |
-
mapped_data = extracted_data.merge(mapping_data, on =['Part No.'],how='outer')
|
99 |
mapped_data['SOType'] = "R"
|
100 |
mapped_data = mapped_data[~mapped_data["SchDate"].isna()]
|
101 |
|
|
|
95 |
extracted_data[['SchDate','Qty']]= pd.DataFrame(extracted_data['Date Qty'].to_list(), index= extracted_data.index)
|
96 |
extracted_data = extracted_data.drop('Date Qty',axis=1)
|
97 |
extracted_data = extracted_data[~extracted_data['SchDate'].isna()]
|
98 |
+
mapped_data = extracted_data.merge(mapping_data, on =['Part No.'],how='outer')[['Item Code','SchDate','Qty']]
|
99 |
mapped_data['SOType'] = "R"
|
100 |
mapped_data = mapped_data[~mapped_data["SchDate"].isna()]
|
101 |
|