没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
import xlrd //事先要下载好xlrd组件
import plotly.plotly as py
import plotly.graph_objs as go
from plotly import tools
from plotly.graph_objs import *
tools.set_credentials_file(username=' ', api_key=' ')
fname="**********.xlsx"
df=xlrd.open_workbook(fname)
sh=df.sheet_by_name("Sheet1")
nrows=sh.nrows
ncols=sh.ncols
row_list=[]
for i in range(0,nrows):
row_data=sh.row_values(i)
row_list.append(row_data)
col_list=[]
for i in range(0,ncols):
col_data=sh.col_values(i)
col_list.append(col_data)
data = [ //数据根据自己的实际情况来
go.Scatterpolar(
r = [col_list[1][2],col_list[1][3], col_list[1][4], col_list[1][5], col_list[1][6], col_list[1][7],
col_list[1][8], col_list[1][9], col_list[1][10], col_list[1][11], col_list[1][12],
col_list[1][13], col_list[1][14], col_list[1][15], col_list[1][16], col_list[1][17],
import plotly.plotly as py
import plotly.graph_objs as go
from plotly import tools
from plotly.graph_objs import *
tools.set_credentials_file(username=' ', api_key=' ')
fname="**********.xlsx"
df=xlrd.open_workbook(fname)
sh=df.sheet_by_name("Sheet1")
nrows=sh.nrows
ncols=sh.ncols
row_list=[]
for i in range(0,nrows):
row_data=sh.row_values(i)
row_list.append(row_data)
col_list=[]
for i in range(0,ncols):
col_data=sh.col_values(i)
col_list.append(col_data)
data = [ //数据根据自己的实际情况来
go.Scatterpolar(
r = [col_list[1][2],col_list[1][3], col_list[1][4], col_list[1][5], col_list[1][6], col_list[1][7],
col_list[1][8], col_list[1][9], col_list[1][10], col_list[1][11], col_list[1][12],
col_list[1][13], col_list[1][14], col_list[1][15], col_list[1][16], col_list[1][17],
资源评论
Powerless.
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功