根据您提供的信息,我们可以从以下几个方面进行核心分析:
品牌集中度:
top3_brands = sorted(data, key=lambda x: x['sales'], reverse=True)[:3]
total_sales = sum(item['sales'] for item in data)
top3_sales_sum = sum(top['sales'] for top in top3_brands)
brand_concentration = (top3_sales_sum / total_sales) * 100
多渠道投放:
from collections import defaultdict
channel_count = defaultdict(int)
for item in data:
for channel in item['channels']:
if channel not in ['达人', '直播', '视频']:
continue
channel_count[channel] += 1
print("达人数:", channel_count['达人'])
print("直播间数:", channel_count['直播'])
print("视频数量:", channel_count['视频'])
类目偏好:
category_count = defaultdict(int)
for item in data:
category_count[item['category']] += 1
top_categories = sorted(category_count.items(), key=lambda x: x[1], reverse=True)[:5]
print("前五大带货类目:", [f"{cat} ({count})" for cat, count in top_categories])
运营效率:
from collections import defaultdict
efficiency = []
for item in data:
active_items = len(item['items'])
live_and_video_count = sum(1 for channel in item['channels'] if channel in ['直播', '视频'])
efficiency.append({
'品牌': item['brand'],
'动销商品数': active_items,
'投放次数': live_and_video_count,
'效率比': (live_and_video_count / active_items) * 100
})
top_efficiency = sorted(efficiency, key=lambda x: x['效率比'], reverse=True)[:5]
print("运营效率最高的品牌官方小店:", [f"{item['品牌']} ({item['效率比']:.2f}%) (动销商品数 {item['动销商品数']}, 投放次数 {item['投放次数']})" for item in top_efficiency])
以上分析数据来源:互联岛