我之前没有使用过 matplotlib - 我已经下载了库并阅读了文档。我正在尝试使用下面的代码在栏顶部显示值。但是,该值不显示
import numpy as np
import matplotlib.pyplot as plt
data = [ ("data1", 34), ("data5", 22),
("data12", 11), ( "data8", 28),
("data53", 57), ( "data11", 39),
("data12", 23), ( "data15", 98)]
N = len(data)
x = np.arange(1,N+1)
y = [ num for (s, num) in data ]
labels = [ s for (s, num) in data ]
width = 1
bar1 = plt.bar( x, y, width, color="y" )
plt.ylabel( 'Intensity' )
plt.xticks(x + width/2.0, labels )
for …Run Code Online (Sandbox Code Playgroud) 抱歉,我对 Google Big Query 的经验很少。我想给出一个“WHERE”子句给出准确输出的查询。
现在我的陈述看起来像:
Select values
where values CONTAIN '8'
Run Code Online (Sandbox Code Playgroud)
这给了我包含的值
8
12,800
12,8,20
5,7,8
100,8000
Run Code Online (Sandbox Code Playgroud)
我怎样才能改变查询只给我
8
12,8,20
5,7,8
Run Code Online (Sandbox Code Playgroud)