練習でplotlyでグラフ化してみた
import pandas as pd pd.options.plotting.backend = "plotly" df = pd.read_csv( "https://oku.edu.mie-u.ac.jp/~okumura/python/data/height.csv", index_col=0 ) fig = df[["男17歳", "男16歳", "男15歳"]].plot(markers=True) fig.update_layout( width=1000, height=600, )
# HTMLをコピペ fig.write_html("view.html", include_plotlyjs = "cdn", full_html = False)