libs.commands.graph.personal module¶
libs/commands/graph/personal.py
- libs.commands.graph.personal.get_data(df, interval)¶
データフレームを指定範囲で分割する
- Parameters:
df (pd.Series) – 分割するデータ
interval (int) – 1ブロックに収めるデータ数
- Returns:
分割されたデータ
- Return type:
pd.DataFrame
- libs.commands.graph.personal.plot(m)¶
個人成績のグラフを生成する
- Parameters:
m (MessageParserProtocol) – メッセージデータ
- Return type:
None
- libs.commands.graph.personal.plotly_bar(title_text, df)¶
順位分布グラフ生成(plotly用)
- Parameters:
title_text (str) – グラフタイトル
df (pd.Series) – プロットするデータ
- Returns:
保存先ファイルパス
- Return type:
Path
- libs.commands.graph.personal.plotly_box(title_text, df)¶
素点分布グラフ生成(plotly用)
- Parameters:
title_text (str) – グラフタイトル
df (pd.DataFrame) – プロットするデータ
- Returns:
保存先ファイルパス
- Return type:
Path
- libs.commands.graph.personal.plotly_line(title_text, df)¶
通算ポイント推移グラフ生成(plotly用)
- Parameters:
title_text (str) – グラフタイトル
df (pd.DataFrame) – プロットするデータ
- Returns:
保存先ファイルパス
- Return type:
Path
- libs.commands.graph.personal.plotly_point(df, title_range, total_game_count)¶
獲得ポイントグラフ(plotly用)
- Parameters:
df (pd.DataFrame) – プロットするデータ
title_range (str) – 集計範囲(タイトル用)
total_game_count (int) – ゲーム数
- Returns:
保存先ファイルパス
- Return type:
Path
- libs.commands.graph.personal.plotly_rank(df, title_range, total_game_count)¶
獲得順位グラフ(plotly用)
- Parameters:
df (pd.DataFrame) – プロットするデータ
title_range (str) – 集計範囲(タイトル用)
total_game_count (int) – ゲーム数
- Returns:
保存先ファイルパス
- Return type:
Path
- libs.commands.graph.personal.statistics_plot(m)¶
個人成績の統計グラフを生成する
- Parameters:
m (MessageParserProtocol) – メッセージデータ
- Return type:
None
- libs.commands.graph.personal.subplot_box(df, ax)¶
箱ひげ図を生成する
- Parameters:
df (pd.DataFrame) – プロットデータ
ax (plt.Axes) – プロット先オブジェクト
- Return type:
None
- libs.commands.graph.personal.subplot_point(df, ax)¶
ポイントデータ
- Parameters:
df (pd.Series) – プロットデータ
ax (plt.Axes) – プロット先オブジェクト
- Return type:
None
- libs.commands.graph.personal.subplot_rank(df, ax, total_index)¶
順位データ
- Parameters:
df (pd.DataFrame) – プロットデータ
ax (plt.Axes) – プロット先オブジェクト
total_index (str) – 合計値格納index
- Return type:
None
- libs.commands.graph.personal.subplot_table(df, ax)¶
テーブルを生成する
- Parameters:
df (pd.DataFrame) – プロットデータ
ax (plt.Axes) – プロット先オブジェクト
- Return type:
None