根据提供的数据,我们可以通过多个维度进行分析:
TOP3直播间引流人次占比 (%):计算前三名直播间的引流总人数占所有直播间引流人数的百分比。
# 假设数据已经整理成 DataFrame df
top3 = df.head(3)
total = df
top3_sum = top3['引流人次'].sum()
total_sum = total['引流人次'].sum()
top3_effectiveness = (top3_sum / total_sum) * 100
print(f"TOP3直播间引流人数占比:{top3_effectiveness:.2f}%")
高引流占比直播的带货类目分布:
# 假设 df['销售额(万元)'] 和 df['短视频引流占比 (%)'] 已经计算好
sorted_df = df.sort_values(by='短视频引流占比 (%)', ascending=False)
top5_categories = sorted_df.head(5)['类目'].value_counts()
print(f"引流比例最高的前五个直播间类别分布:\n{top5_categories}")
粉丝数与引流能力的关系:
# 假设 df['粉丝数(万人)'] 已经计算好
bins = [0, 1, 5, 10, 20, float('inf')] # 设置不同的粉丝数区间
labels = ['<1万', '1-5万', '5-10万', '>10万']
df['粉丝段'] = pd.cut(df['粉丝数(万人)'], bins=bins, labels=labels)
fan_segment_effectiveness = df.groupby('粉丝段')['短视频引流占比 (%)'].mean()
print(f"不同粉丝段的直播间平均引流比例:\n{fan_segment_effectiveness}")
import pandas as pd
# 假设 df 是已经加载好的 DataFrame
df = pd.read_csv('livestream_data.csv')
# 计算短视频引流占比
df['短视频引流占比 (%)'] = (df['引流人次'] / df['总访问量']) * 100
# 头部效应分析
top3_sum = df.head(3)['引流人次'].sum()
total_sum = df['引流人次'].sum()
top3_effectiveness = (top3_sum / total_sum) * 100
print(f"TOP3直播间引流人数占比:{top3_effectiveness:.2f}%")
# 类目特征分析
sorted_df = df.sort_values(by='短视频引流占比 (%)', ascending=False)
top5_categories = sorted_df.head(5)['类目'].value_counts()
print(f"引流比例最高的前五个直播间类别分布:\n{top5_categories}")
# 粉丝体量分析
bins = [0, 1, 5, 10, 20, float('inf')]
labels = ['<1万', '1-5万', '5-10万', '>10万']
df['粉丝段'] = pd.cut(df['粉丝数(万人)'], bins=bins, labels=labels)
fan_segment_effectiveness = df.groupby('粉丝段')['短视频引流占比 (%)'].mean()
print(f"不同粉丝段的直播间平均引流比例:\n{fan_segment_effectiveness}")
以上分析数据来源:互联岛