-
import matplotlib.pyplot as plt plt.hist(values,bins) bins表 分的組數(shù) plt.show()查看全部
-
import matplotlib.pyplot as plt x=[] y=[] plt.plot(x,y) #線圖 plt.scatter(x,y) #散點(diǎn)圖 plt.show()查看全部
-
計(jì)算一列數(shù)據(jù)的平均值函數(shù):mean,計(jì)算一列數(shù)據(jù)的中位數(shù)函數(shù):median,計(jì)算兩列數(shù)據(jù)的相關(guān)性函數(shù)corrcef(),計(jì)算樣板標(biāo)準(zhǔn)差函數(shù):std(),計(jì)算求和函數(shù)sum(),排列函數(shù)sort()。numpy中函數(shù)運(yùn)算速度比python中函數(shù)計(jì)算速度快很多,因?yàn)閚umpy中要求list中所有數(shù)據(jù)類型必須一致。 np.column_stack((列1,列2)):進(jìn)行列連接,是生成兩列。 numpy.random.normal() 產(chǎn)生隨機(jī)數(shù) 生成數(shù)據(jù) height = np.round(np.random.normal(1.75, 0.20, 5000), 2) weight = np.round(np.random.normal(60.32, 15, 5000), 2)查看全部
-
構(gòu)造子集查看全部
-
numpy數(shù)組類型 .shape表示數(shù)據(jù)的屬性查看全部
-
numpy構(gòu)造子集查看全部
-
numpy數(shù)組元素只有一種類型查看全部
-
numpy查看全部
-
否則數(shù)據(jù)中元素將會(huì)被轉(zhuǎn)換為另一種類型查看全部
-
numpy 元素只有一種類型查看全部
-
xlabel查看全部
-
np.column_stack((a,b))查看全部
-
height = np.round(np.random.normal(1.75, 0.20, 5000), 2) weight = np.round(np.random.normal(60.32, 15, 5000), 2) # 列鏈接 np_city = np.column_stack(height, weight)查看全部
-
包的安裝 http://pip.readthedocs.org/en/stable/installing/ 安裝 get-pip.py 終端: python3 get-pip.py #安裝pip.py pip3 install numpy #安裝具體的包查看全部
-
str方法:XXX.replace(str1,str2)查看全部
舉報(bào)
0/150
提交
取消