![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
matplotlib
fklk
这个作者很懒,什么都没留下…
展开
-
Pyplot 画图
Pyplot 画图import numpy as npimport matplotlib.pyplot as pltx = np.linspace(1, 10, 1000)y = x+3plt.plot(x,y,color=‘blue’,linewidth=1.0,linestyle=’-’)#画第一个函数,设置颜色,线宽,实线plt.xlabel(‘X-aix’)#添加座标标签plt.ylabel(‘Y-aix’)#添加座标标签...原创 2021-08-22 12:32:43 · 160 阅读 · 0 评论 -
禅道导出表格后统计bug数(by pandas)
假设有这样一个表格:bug.xlsximport pandas as pdimport matplotlib.pyplot as pltdf= pd.read_excel('bug.xlsx')#print(xx.head)#print(df.columns)#rint (df['创建者'])print ("----------------------------------------")df.rename(columns={"创建者": "Createer", "日期": "Date"原创 2020-09-26 18:07:47 · 1250 阅读 · 0 评论 -
Numpy quick fork
The BasicsNumPy’s main object is the homogeneous multidimensional array. It is a table of elements (usually numbers), all of the same type, indexed by a tuple of non-negative integers. In NumPy dimensions are called axes.For example, the coordinates of a原创 2020-06-29 11:08:27 · 153 阅读 · 0 评论 -
matplotlib 画图以及ZT统计,
#!/usr/bin/python#coding=utf-8#import talibimport numpy as npimport pandas as pdimport tushare as tsimport matplotlib.pyplot as pltplt.rcParams[‘font.sans-serif’] = [‘SimHei’]df = ts.get_h_dat...原创 2019-01-06 18:15:05 · 603 阅读 · 1 评论 -
numpy用法:numpy.random.randint
https://www.w3cschool.cn/doc_numpy_1_12/numpy_1_12-generated-numpy-random-randint.htmlnumpy.random.randint(low, high=None, size=None, dtype=‘l’)Return random integers from low (inclusive) to high (e...原创 2019-01-02 14:39:47 · 531 阅读 · 0 评论