libs.commands.report.stats_report module

libs/commands/report/results_report.py

libs.commands.report.stats_report.cover_page(style, target_info)

表紙生成

Parameters:
  • style (dict[str, Any]) – レイアウトスタイル

  • target_info (dict[str, Any]) – プレイヤー情報

Returns:

生成内容

Return type:

list[Any]

libs.commands.report.stats_report.entire_aggregate(style)

全期間

Parameters:

style (dict[str, Any]) – レイアウトスタイル

Returns:

生成内容

Return type:

list[Any]

libs.commands.report.stats_report.gen_pdf(m)

成績レポートを生成する

Parameters:

m (MessageParserProtocol) – メッセージデータ

Return type:

None

libs.commands.report.stats_report.get_count_moving(game_count)

移動平均を取得する

Parameters:

game_count (int) – 平滑化するゲーム数

Returns:

集計結果のリスト

Return type:

list[dict[str, Any]]

libs.commands.report.stats_report.get_count_results(game_count)

指定間隔区切りのゲーム結果集計

Parameters:

game_count (int) – 区切るゲーム数

Returns:

集計結果のリスト

Return type:

list[list[str]]

libs.commands.report.stats_report.get_game_results()

月/年単位のゲーム結果集計

Returns:

集計結果のリスト

Return type:

list[list[str]]

libs.commands.report.stats_report.graphing_mean_rank(df, title, whole=False)

平均順位の折れ線グラフを生成

Parameters:
  • df (pd.DataFrame) – 描写データ

  • title (str) – グラフタイトル

  • whole (bool, optional) –

    集計種別. Defaults to False.

    • True: 全体集計

    • False: 指定範囲集計

Returns:

画像データ

Return type:

BytesIO

libs.commands.report.stats_report.graphing_rank_distribution(df, title)

順位分布の棒グラフを生成

Parameters:
  • df (pd.DataFrame) – 描写データ

  • title (str) – グラフタイトル

Returns:

画像データ

Return type:

BytesIO

libs.commands.report.stats_report.graphing_total_points(df, title, whole=False)

通算ポイント推移の折れ線グラフを生成

Parameters:
  • df (pd.DataFrame) – 描写データ

  • title (str) – グラフタイトル

  • whole (bool, optional) –

    集計種別. Defaults to False.

    • True: 全体集計 / 移動平均付き

    • False: 指定範囲集計

Returns:

画像データ

Return type:

BytesIO

libs.commands.report.stats_report.periodic_aggregation(style)

期間集計

Parameters:

style (dict[str, Any]) – レイアウトスタイル

Returns:

生成内容

Return type:

list[Any]

libs.commands.report.stats_report.sectional_aggregate(style, target_info)

区間集計

Parameters:
  • style (dict[str, Any]) – レイアウトスタイル

  • target_info (dict[str, Any]) – プレイヤー情報

Returns:

生成内容

Return type:

list[Any]