Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def pd_bokeh():
|
|
| 22 |
import pandas_bokeh
|
| 23 |
from bokeh.plotting import figure,show
|
| 24 |
df = pd.DataFrame({'A':[125,44,76], 'B':[66, 98, 78]})
|
| 25 |
-
ax = df.plot_bokeh.scatter(x='A',y='B')
|
| 26 |
return ax.get_figure() #plt
|
| 27 |
demo=gr.Blocks()
|
| 28 |
with demo:
|
|
|
|
| 22 |
import pandas_bokeh
|
| 23 |
from bokeh.plotting import figure,show
|
| 24 |
df = pd.DataFrame({'A':[125,44,76], 'B':[66, 98, 78]})
|
| 25 |
+
ax = df.plot_bokeh.scatter(x='A',y='B',category='class',title='吹牛逼你是认真的',show_figure=True)
|
| 26 |
return ax.get_figure() #plt
|
| 27 |
demo=gr.Blocks()
|
| 28 |
with demo:
|