数据分析
Weize Tang
Stop thinking,worrying,wondering,doubting,fearing,hurting,struggling,itching,scratching,rumbling,gambling,nit-picking.Stop it and just do it
展开
-
numpy库用法总结
为什么要用numpy数组,我相信从下面用法对比中很清晰的看出原由 以上都是来源嵩天老师课件原创 2017-04-12 12:07:22 · 681 阅读 · 0 评论 -
pandas库教程(1)
# -*- coding: utf-8 -*- from pandas import Seriesprint '用数组生成Series'obj = Series([4, 7, -5, 3])print objprint obj.valuesprint obj.indexprintprint '指定Series的index'obj2 = Series([4, 7, -5, 3], inde原创 2017-04-12 12:35:01 · 586 阅读 · 0 评论 -
Python求矩阵特征值及特征向量和实现对角化矩阵简化矩阵n次方运算
import numpy as npa = np.matrix([[0, 1, 0, 1, 0], [1, 0, 1, 0 ,0],[0, 1, 0, 0, 1], [1, 0, 0, 0, 1],[0,0, 1, 1,0]])for i in range(20): if i == 0: t = a*a continue t = t * a#t为特征原创 2017-05-17 15:37:08 · 3800 阅读 · 0 评论 -
pandas 读csv时为了将第一列作为行名字
pandas 读csv时为了将第一列作为行名字只需要在 加上 index _col = 0index_col=0原创 2019-04-02 19:10:09 · 11726 阅读 · 0 评论