pandas plotly

Solutions on MaxInterview for pandas plotly by the best coders in the world

showing results for - "pandas plotly"
Aidan
10 Aug 2018
1import pandas as pd
2pd.options.plotting.backend = "plotly"
Gaston
13 Jan 2017
1import pandas as pd
2pd.get_option('plotting.backend') # default: matplotlib
3df = pd.DataFrame(dict(a=[1,3,2], b=[3,2,1]))
4df.plot(backend='plotly') # backend exception only for this one plot.
5
6pd.set_option('plotting.backend', 'plotly') # or
7pd.options.plotting.backend = "plotly"
8fig = df.plot() # uses backend set in options else default.
9fig.show()
10
11# rendering blank space in classic jupyter notebook?
12fig.show(renderer='notebook') # or
13import plotly.io
14plotly.io.renderes.default='notebook'
15
16Sources:
17https://plotly.com/python/troubleshooting/
18https://plotly.com/python/pandas-backend/
Jannik
20 Feb 2017
1pd.options.plotting.backend = "plotly"