changxin commited on
Commit
02157cc
·
1 Parent(s): 71f7697

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,8 +21,8 @@ def pd_bokeh():
21
  pd.options.plotting.backend='pandas_bokeh'
22
  import pandas_bokeh
23
  from bokeh.plotting import figure,show
24
- df = pd.DataFrame({'课程':['语文', '数学', '英语'], '成绩':[66, 98, 78]})
25
- ax = df['成绩'].plot_bokeh.pie()
26
  return ax #plt
27
  demo=gr.Blocks()
28
  with demo:
 
21
  pd.options.plotting.backend='pandas_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 #plt
27
  demo=gr.Blocks()
28
  with demo: