Commit c746c4ad by larosa

resolve

parent b2056aa8
Showing with 15 additions and 11 deletions
......@@ -20,20 +20,23 @@ title_map = {
title_arr = [
'Manufacturer Name', 'Part Number', 'Stock EMEA', 'Stock USA', 'Stock APAC', 'Stock CN', 'MOQ',
'Price Break Qty 1', 'Price Break 1', 'Price Break Qty 2', 'Price Break 2',
'Price Break Qty 3', 'Price Break 3', 'Price Break Qty 4', 'Price Break 4',
'Price Break Qty 5', 'Price Break 5', 'Price Break Qty 6', 'Price Break 6',
'Price Break Qty 7', 'Price Break 7', 'Price Break Qty 8', 'Price Break 8',
'Price Break Qty 9', 'Price Break 9', 'Date Code'
'Price Break Qty 1', 'Price Break Qty 2',
'Price Break Qty 3', 'Price Break Qty 4',
'Price Break Qty 5', 'Price Break Qty 6',
'Price Break Qty 7', 'Price Break Qty 8',
'Price Break Qty 9', 'Date Code'
]
ladder_map = {
'Price Break Qty 1': 'Price Break 1',
'Price Break Qty 2': 'Price Break 2',
'Price Break Qty 3': '',
'Price Break Qty 4',
'Price Break Qty 5', 'Price Break Qty 6', 'Price Break Qty 7', 'Price Break Qty 8',
'Price Break Qty 9',
'Price Break Qty 3': 'Price Break 3',
'Price Break Qty 4': 'Price Break 4',
'Price Break Qty 5': 'Price Break 5',
'Price Break Qty 6': 'Price Break 6',
'Price Break Qty 7': 'Price Break 7',
'Price Break Qty 8': 'Price Break 8',
'Price Break Qty 9': 'Price Break 9',
}
class HandleCSV:
......@@ -66,8 +69,9 @@ class HandleCSV:
elif title_arr[j] in ladder_map:
ladder_item_map['purchases'] = int(data)
ladder_item_map['price_us'] = float(0)
ladder_item_map['price_cn'] = float()
ladder_item_map['price_cn'] = float(df.loc[i, ladder_map[title_arr[j]]])
elif title_arr[j] == 'Date Code':
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment