plotly / plotly/plotly.py

Example "Update Button" is broken in: Python > Custom Controls > Custom Buttons

オープン
#3,068 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug P3
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
21

説明

The code in the example doesn't correctly import the dataset, namely the Data column that is supposed to be index is imported as ordinary column making the following code disfunction in several places.

The fix is to put the line df = df.set_index('Date') just after reading the dataframe:

...
df = pd.read_csv(
    "https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv")
df = df.set_index('Date')
...

Cheers.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Python > Custom Controls > Custom Buttons の例から始め、pd.read_csv 周辺のデータフレーム読み込みコードを確認してください。Date 列がデータフレームのインデックスとして使用されていることを確認し、その後で例を実行して、影響を受ける箇所で Update Button が機能することを確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
pandas, python
領域
documentation
issue の種類
バグ
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。