如何使用AWS QuickSight创建累积总和图?例如,我有一个包含每天销售量的数据集.我想为每个月制作一个累计销售的线图.
喜欢:D0 = 10卖出,D1 = 11卖出,D2 = 9卖出
该图应该有一条线,D0 = 10,D1 = 21,D2 = 30 ......
谢谢!
I got I dictionary
lr = {'0': 0.1354364, '1': 0.134567, '2': 0.100000}
Run Code Online (Sandbox Code Playgroud)
and so goes on.
I try ploting a simple line graph with key(0,1,2) as the x axis and the value (0.1354364,0.134567,0.100000) as the y value
plt.plot(lr.keys(),lr.values())
plt.title('ID model model accuracy')
plt.ylabel('accuracy')
plt.xlabel('epoch')
plt.legend(['train', 'test'], loc='upper left')
plt.savefig('ID modelo: model accuracy.png')
plt.clf()
Run Code Online (Sandbox Code Playgroud)
我得到了这个错误。
类型错误:float() 参数必须是字符串或数字,而不是“dict_keys”