https://github.com/priyanshuahir000/ecommerce-data-processing
MongoDB-based sorting, filtering, and processing of 30K e-commerce products.
https://github.com/priyanshuahir000/ecommerce-data-processing
Last synced: about 2 months ago
JSON representation
MongoDB-based sorting, filtering, and processing of 30K e-commerce products.
- Host: GitHub
- URL: https://github.com/priyanshuahir000/ecommerce-data-processing
- Owner: priyanshuahir000
- Created: 2024-12-08T10:43:41.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-01-04T04:39:41.000Z (5 months ago)
- Last Synced: 2025-02-07T17:29:11.572Z (4 months ago)
- Language: TypeScript
- Size: 233 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ecommerce-Data-Processing
This project involves MongoDB-based sorting, filtering, and processing of 30K e-commerce products. The goal is to efficiently manage and analyze a large dataset of e-commerce products.
## Dataset Information
### Number of brands: 325
```json
[
{
"$group": {
"_id": "$brand",
"count": {
"$sum": 1
}
}
},
{
"$count": "string"
}
]
```### Number of categories: 4
```json
[
{
"$group": {
"_id": "$category",
"count": {
"$sum": 1
}
}
},
{
"$count": "string"
}
]
```### Number of subcategories: 24
```json
[
{
"$group": {
"_id": "$sub_category",
"count": {
"$sum": 1
}
}
},
{
"$count": "string"
}
]
```### Number of sellers: 535
```json
[
{
"$group": {
"_id": "$seller",
"count": {
"$sum": 1
}
}
},
{
"$count": "string"
}
]
```### Number of Colors: 30
```json
[
{
"$unwind": "$product_details"
},
{
"$match": {
"product_details.Color": {
"$exists": true
}
}
},
{
"$project": {
"color": {
"$split": ["$product_details.Color", ", "]
}
}
},
{
"$unwind": "$color"
},
{
"$group": {
"_id": "$color",
"count": {
"$sum": 1
}
}
},
{
"$group": {
"_id": "_id",
"count": {
"$sum": 1
}
}
},
]
```### Number of fabric: 244
```json
[
{
"$unwind": "$product_details"
},
{
"$match": {
"product_details.Fabric": {
"$exists": true
}
}
},
{
"$project": {
"fabric": "$product_details.Fabric"
}
},
{
"$group": {
"_id": "$fabric",
"count": {
"$sum": 1
}
}
},
{
"$count": "Types of fabric"
}
]
```### Number of Pattern: 118
```json
[
{
"$unwind": "$product_details"
},
{
"$match": {
"product_details.Pattern": {
"$exists": true
}
}
},
{
"$project": {
"pattern": "$product_details.Pattern"
}
},
{
"$group": {
"_id": "$pattern",
"count": {
"$sum": 1
}
}
},
{
"$count": "Types of Pattern"
}
]
```### Out Of Stock Item: 1742
```json
[
{
"$match": {
"out_of_stock": true
}
},
{
"$count": "string"
}
]
```### Number of discount: 88
```json
[
{
"$match": {
"discount": { "$exists": true }
}
},
{
"$project": {
"discount": 1
}
},
{
"$group": {
"_id": "$discount"
}
},
{
"$count": "string"
}
]
```### Number of discount: 88
```json
[
{
"$match": {
"discount": { "$exists": true }
}
},
{
"$project": {
"discount": 1
}
},
{
"$group": {
"_id": "$discount"
}
},
{
"$count": "string"
}
]
```