mralamdari commited on
Commit
5f44f4a
·
verified ·
1 Parent(s): e0fe043

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -37,7 +37,7 @@ sizes = [18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
37
 
38
 
39
  shoes_data = pd.read_excel('Book1.xlsx')
40
- def show_shoes(sizes, types, colors, shoelaces, genders):
41
  print('sizes', sizes)
42
  print('types', types)
43
  print('colors', colors)
@@ -45,12 +45,14 @@ def show_shoes(sizes, types, colors, shoelaces, genders):
45
  print('genders', genders)
46
 
47
  shoes_arr = []
48
- selection = [sizes, genders, colors, types, shoelaces]
49
  print(selection)
50
  for i in range(len(shoes_data)):
51
  Flag = True
52
- shoe_code,shoe_name,shoe_company,shoe_sizes,shoe_colors,shoe_shoelaces,shoe_sexes,shoe_types = shoes_data.iloc[i].values
53
- shoes = [shoe_sizes.split('-'), shoe_sexes.split('-'), shoe_colors.split('-'), shoe_types.split('-'), shoe_shoelaces.split('-')]
 
 
54
  for select_details, shoe_details in zip(selection, shoes):
55
  if not select_details:
56
  continue
 
37
 
38
 
39
  shoes_data = pd.read_excel('Book1.xlsx')
40
+ def show_shoes(types, genders, colors, shoelaces, sizes):
41
  print('sizes', sizes)
42
  print('types', types)
43
  print('colors', colors)
 
45
  print('genders', genders)
46
 
47
  shoes_arr = []
48
+ selection = [types, genders, colors, shoelaces, sizes]
49
  print(selection)
50
  for i in range(len(shoes_data)):
51
  Flag = True
52
+ shoe_code,shoe_name,_,shoe_sizes,shoe_colors,shoe_shoelaces,shoe_sexes,shoe_types = shoes_data.iloc[i].values
53
+ shoes = [shoe_types.split('-'), shoe_sexes.split('-'), shoe_colors.split('-'), shoe_shoelaces.split('-'), shoe_sizes.split('-')]
54
+ # shoes = [shoe_sizes.split('-'), shoe_sexes.split('-'), shoe_colors.split('-'), shoe_types.split('-'), shoe_shoelaces.split('-')]
55
+
56
  for select_details, shoe_details in zip(selection, shoes):
57
  if not select_details:
58
  continue