Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def pd_plotly():
|
|
| 16 |
pd.options.plotting.backend='plotly'
|
| 17 |
df = pd.DataFrame({'课程':['语文', '数学', '英语'], '成绩':[66, 98, 78]})
|
| 18 |
ax = df.plot.bar(x='课程',y='成绩')
|
| 19 |
-
return ax
|
| 20 |
demo=gr.Blocks()
|
| 21 |
with demo:
|
| 22 |
gr.Markdown("# <center>图表渲染测试")
|
|
|
|
| 16 |
pd.options.plotting.backend='plotly'
|
| 17 |
df = pd.DataFrame({'课程':['语文', '数学', '英语'], '成绩':[66, 98, 78]})
|
| 18 |
ax = df.plot.bar(x='课程',y='成绩')
|
| 19 |
+
return ax #plt
|
| 20 |
demo=gr.Blocks()
|
| 21 |
with demo:
|
| 22 |
gr.Markdown("# <center>图表渲染测试")
|