摘要: 如果print显示的结果: 28 -0.521884 29 0.388389 ... 970 -1.873332 971 -1.962243 有省略的现象,这个应该也是官方:如果有大数据量的输出,不太好处理,如果我们能确定输出有限且个数比较小,可以全部输出。 解决方法: import pandas 阅读全文
posted @ 2020-09-03 18:11 醉城、 阅读(6604) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd import numpy as np np.set_printoptions(threshold=np.inf) #生成一个二维数组,第一列为日期,第二列为正态分布值 ts = pd.Series(np.random.randn(1000),index=pd. 阅读全文
posted @ 2020-09-03 17:23 醉城、 阅读(273) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python # -*- coding:utf-8 -*- import time,datetime import os,sys #获取并检查外部传入参数 if(len(sys.argv)==2): bizDate=sys.argv[1] print "数据日期:",bizDa 阅读全文
posted @ 2020-09-03 14:02 醉城、 阅读(3812) 评论(0) 推荐(0) 编辑