ecdf with normed histogram
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
I really like the plotly.express.ecdf and have been using it a lot in my daily work.
When I show ecdf plots in meetings, I usually show it with marginal='histogram', since this is easier understandable for the non-data-scientists in the room.
However, since the amount of data varies I would like to have a normalized histogram, i.e. have percent values.
I know this would be possible with subplots, but there are really a lot of ugly adjustments to make.
So a solution could be to show the percentage in the hint as well, or something like histnorm from plotly.express.histogram.
Example for easy testing:
import plotly.express as px
import numpy as np
import pandas as pd
# Generate random data
np.random.seed(42) # For reproducibility
data = np.random.normal(loc=0, scale=1, size=1000) # Normal distribution data
# Create a pandas dataframe
df = pd.DataFrame({'Values': data})
# Create ECDF plot with histogram
fig = px.ecdf(data,
ecdfnorm='percent',
marginal='histogram')
# Show the figure
fig.show()
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
px.ecdf のエントリーポイントから始め、px.histogram で histnorm とともに marginal='histogram' がどのように設定されているかを比較します。正規化された marginal のビンと、ホバー時のパーセンテージ情報のどちらが意図された動作なのかを判断し、その結果を提供された NumPy と pandas の例で検証します。ECDF ヒストグラムの marginal で手動のサブプロットなしにパーセンテージを表現できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- numpy, pandas, plotly, python
- 領域
- data-visualization
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100