Spaces:
Build error
Build error
File size: 5,502 Bytes
3bad252 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
import pandas as pd
import os
# Create sample product catalog data
catalog_data = [
{
"Product_ID": "D001",
"Name": "Rosemary Floral Sundress",
"Category": "Dress",
"Price": 85,
"Available_Sizes": "XS,S,M,L,XL",
"Fit": "Relaxed",
"Color": "Pink",
"Pattern": "Floral",
"Sleeve_Length": "Sleeveless",
"Neckline": "V-neck",
"Length": "Knee-length",
"Occasion": "Casual",
"Season": "Summer",
"Brand": "SunnyDays",
"Description": "Light and airy floral sundress perfect for summer occasions"
},
{
"Product_ID": "D002",
"Name": "Daisy Print Midi Dress",
"Category": "Dress",
"Price": 90,
"Available_Sizes": "S,M,L,XL",
"Fit": "Relaxed",
"Color": "Yellow",
"Pattern": "Floral",
"Sleeve_Length": "Sleeveless",
"Neckline": "Round neck",
"Length": "Midi",
"Occasion": "Casual",
"Season": "Summer",
"Brand": "FloralFashion",
"Description": "Cheerful daisy print midi dress with comfortable fit"
},
{
"Product_ID": "B001",
"Name": "Classic Navy Blazer",
"Category": "Blazer",
"Price": 120,
"Available_Sizes": "XS,S,M,L,XL,XXL",
"Fit": "Tailored",
"Color": "Navy",
"Pattern": "Solid",
"Sleeve_Length": "Long sleeve",
"Neckline": "Collared",
"Length": "Hip-length",
"Occasion": "Formal",
"Season": "All",
"Brand": "Professional",
"Description": "Timeless navy blazer for professional settings"
},
{
"Product_ID": "T001",
"Name": "Casual Cotton T-Shirt",
"Category": "Top",
"Price": 25,
"Available_Sizes": "XS,S,M,L,XL,XXL",
"Fit": "Relaxed",
"Color": "White",
"Pattern": "Solid",
"Sleeve_Length": "Short sleeve",
"Neckline": "Round neck",
"Length": "Hip-length",
"Occasion": "Casual",
"Season": "All",
"Brand": "BasicWear",
"Description": "Comfortable cotton t-shirt for everyday wear"
},
{
"Product_ID": "D003",
"Name": "Elegant Black Evening Dress",
"Category": "Dress",
"Price": 150,
"Available_Sizes": "XS,S,M,L,XL",
"Fit": "Bodycon",
"Color": "Black",
"Pattern": "Solid",
"Sleeve_Length": "Sleeveless",
"Neckline": "V-neck",
"Length": "Maxi",
"Occasion": "Formal",
"Season": "All",
"Brand": "ElegantEvening",
"Description": "Sophisticated black dress perfect for formal events"
},
{
"Product_ID": "J001",
"Name": "High-Waisted Skinny Jeans",
"Category": "Jeans",
"Price": 65,
"Available_Sizes": "24,26,28,30,32,34",
"Fit": "Slim",
"Color": "Blue",
"Pattern": "Solid",
"Sleeve_Length": "N/A",
"Neckline": "N/A",
"Length": "Full-length",
"Occasion": "Casual",
"Season": "All",
"Brand": "DenimCo",
"Description": "Classic high-waisted skinny jeans in dark wash"
},
{
"Product_ID": "S001",
"Name": "Flowy Maxi Skirt",
"Category": "Skirt",
"Price": 45,
"Available_Sizes": "XS,S,M,L,XL",
"Fit": "Relaxed",
"Color": "Mint Green",
"Pattern": "Solid",
"Sleeve_Length": "N/A",
"Neckline": "N/A",
"Length": "Maxi",
"Occasion": "Casual",
"Season": "Summer",
"Brand": "FlowingFashion",
"Description": "Comfortable maxi skirt with elastic waistband"
},
{
"Product_ID": "A001",
"Name": "Athletic Yoga Set",
"Category": "Activewear",
"Price": 55,
"Available_Sizes": "XS,S,M,L,XL",
"Fit": "Athletic",
"Color": "Black",
"Pattern": "Solid",
"Sleeve_Length": "Long sleeve",
"Neckline": "Round neck",
"Length": "Full-length",
"Occasion": "Workout",
"Season": "All",
"Brand": "FitLife",
"Description": "High-performance yoga set with moisture-wicking fabric"
},
{
"Product_ID": "D004",
"Name": "Bohemian Maxi Dress",
"Category": "Dress",
"Price": 95,
"Available_Sizes": "S,M,L,XL",
"Fit": "Relaxed",
"Color": "Multi",
"Pattern": "Paisley",
"Sleeve_Length": "Long sleeve",
"Neckline": "V-neck",
"Length": "Maxi",
"Occasion": "Casual",
"Season": "Fall",
"Brand": "BohoChic",
"Description": "Free-spirited maxi dress with paisley print"
},
{
"Product_ID": "T002",
"Name": "Pastel Pink Blouse",
"Category": "Top",
"Price": 40,
"Available_Sizes": "XS,S,M,L,XL",
"Fit": "Tailored",
"Color": "Light Pink",
"Pattern": "Solid",
"Sleeve_Length": "Short sleeve",
"Neckline": "Button-up",
"Length": "Hip-length",
"Occasion": "Business Casual",
"Season": "Spring",
"Brand": "ProfessionalPastels",
"Description": "Soft pink blouse perfect for office wear"
}
]
# Create DataFrame and save to Excel
df = pd.DataFrame(catalog_data)
os.makedirs('data', exist_ok=True)
df.to_excel('data/Apparels_shared.xlsx', index=False)
print("Sample catalog created successfully!") |