Pandas 에서 Plotly backend 사용하기

2020. 7. 2. 23:56분석 Python/Visualization

import pandas as pd, seaborn as sns
import plotly.express as px
tips = sns.load_dataset('tips')
tips['tip'].plot(kind = 'hist')

plotly 4.8 버전부터 된다고 함. 

pd.options.plotting.backend = "plotly"

이렇게 사용하면 된다!

tips[['tip', 'smoker']].plot.box(facet_col = 'smoker')

tips.plot.scatter(x = 'tip', y='total_bill')

https://plotly.com/python/box-plots/

 

Box Plots

How to make Box Plots in Python with Plotly.

plotly.com

 

728x90