<jupyter_start><jupyter_text>ウィークリーレポート - ヤフオク!アクセスアナリティクス<jupyter_code>from datetime import date, timedelta
from ya3_report import daily, weekly
COUNT_LABELS = ["access", "watch", "bid"]
dt = date.today() - timedelta(days=1)
df = weekly.get_data(dt)
df_datehour = weekly.index_datehour(df)<jupyter_output><empty_output><jupyter_text>サマリー- access: アクセス数- watch: ウォッチ数- bid: 入札数<jupyter_code>df_datehour[COUNT_LABELS].describe()<jupyter_output><empty_output><jupyter_text>合計カウント<jupyter_code>df_datehour[COUNT_LABELS].sum()<jupyter_output><empty_output><jupyter_text>一週間の推移<jupyter_code>df_datehour.plot(y=COUNT_LABELS, subplots=True, rot=45, title=f"Counts from {dt-timedelta(days=6)} to {dt}");<jupyter_output><empty_output><jupyter_text>曜日別比較  アクセス数<jupyter_code>weekly.plot_count_by_day(df_datehour, "access");<jupyter_output><empty_output><jupyter_text>ウォッチ数<jupyter_code>weekly.plot_count_by_day(df_datehour, "watch");<jupyter_output><empty_output><jupyter_text>入札数<jupyter_code>weekly.plot_count_by_day(df_datehour, "bid");<jupyter_output><empty_output><jupyter_text>注目された商品<jupyter_code>df_aID = daily.index_aID(df)<jupyter_output><empty_output><jupyter_text>アクセス数トップ5<jupyter_code>df_aID.sort_values("access", ascending=False).head()<jupyter_output><empty_output><jupyter_text>ウォッチ数トップ5<jupyter_code>df_aID.sort_values("watch", ascending=False).head()<jupyter_output><empty_output><jupyter_text>入札数トップ5<jupyter_code>df_aID.sort_values("bid", ascending=False).head()<jupyter_output><empty_output><jupyter_text>相関行列<jupyter_code>df_aID[COUNT_LABELS].corr()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14195979899497488, 'fraction_numerical': 0.005025125628140704, 'mean_word_length': 20.527027027027028, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '12', 'dir': 'jupyter-structured-clean-dedup', 'id': '534010', 'license': 'MIT', 'n_tokens_mistral': 756, 'n_tokens_neox': 748, 'n_words': 43, 'path': 'ya3_report/notebooks/weekly_report.ipynb', 'repo_name': 'ecoreuse/ya3-report', 'size': '1592'}