本文整理汇总了Python中Graphics.dashboard方法的典型用法代码示例。如果您正苦于以下问题:Python Graphics.dashboard方法的具体用法?Python Graphics.dashboard怎么用?Python Graphics.dashboard使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Graphics
的用法示例。
在下文中一共展示了Graphics.dashboard方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: set
# 需要导入模块: import Graphics [as 别名]
# 或者: from Graphics import dashboard [as 别名]
elif item == 'F' or item == 'evd' or item == 'OR' or item == 'RF' or item == 'R':
return 1
elif item == 'om' or item == 'ED' or item == 'LT':
return 0
elif item == 'LO' or item == 'AG':
return -2
elif item == 'RO':
return 2
else:
return item
cols = set(range(35))
bad_cols = set([0,1,2,12,13,29,30,10,11])
good_cols = list(cols-bad_cols)
with open('../Data/variables',READ) as f:
vois = [x.rstrip('\t\n') for x in f.readlines()]
conversion = dict(zip(range(38),vois))
labels = [conversion[col] for col in good_cols if col != 10]
with open(directory['data'],READ) as fid:
reader = csv.reader(fid)
reader.next()
data =np.array(filter(lambda row: '' not in row and 'NA' not in row and '?' not in row,
[[convert(row[i]) for i in good_cols] for row in reader])).astype(float)
artist.dashboard(data, numpc=5,labels=labels)