根据提供的数据,我们可以从以下几个核心维度进行分析:
关联达人数量差异:
直播/视频数规模差异:
以下是具体分析步骤:
# 示例代码(假设数据已经整理好)
top3_sales = sorted(brands, key=lambda x: x['sales'], reverse=True)[:3]
total_sales = sum([brand['sales'] for brand in brands])
top3_sales_ratio = (sum(brand['sales'] for brand in top3_sales) / total_sales) * 100
print(f"Top 3品牌小店的销售额占比:{top3_sales_ratio:.2f}%")
# 示例代码(假设数据已经整理好)
def count_reaches_and_videos(brand_data):
reaches = [brand['reaches'] for brand in brand_data]
videos = [brand['videos'] for brand in brand_data]
# 计算前三大品牌
top3_reaches = sorted(reaches, reverse=True)[:3]
top3_videos = sorted(videos, reverse=True)[:3]
return {
'top3_reaches': sum(top3_reaches),
'top3_videos': sum(top3_videos)
}
result = count_reaches_and_videos(brands)
print(f"关联达人总数前三:{result['top3_reaches']}")
print(f"直播/视频数前三:{result['top3_videos']}")
# 示例代码(假设数据已经整理好)
def find_top_categories(brand_data):
categories = [brand['category'] for brand in brand_data]
# 计算各类目的出现频率
from collections import Counter
category_count = Counter(categories)
top_categories = category_count.most_common(5) # 前五大类目
return {cat: count for cat, count in top_categories}
top_categories = find_top_categories(brands)
print("热门带货类目:", top_categories)
# 示例代码(假设数据已经整理好)
def calculate_efficiency(brand_data):
active_products = [len(brand['active_products']) for brand in brand_data]
video_count = [brand['videos'] for brand in brand_data]
# 计算关联性
from scipy.stats import pearsonr
corr, _ = pearsonr(active_products, video_count)
return corr
efficiency_score = calculate_efficiency(brands)
print(f"运营效率得分:{efficiency_score:.2f}")
通过以上分析,可以得出以下结论:
以上分析数据来源:互联岛