前言 对于学习NumPy(Numeric Python),首先得明确一点是:Numpy 是用来处理矩阵数组的. shape 属性 对于shape函数,官方文档是这么说明: the dimensions of the array. This is a tuple of integers indicating the size of the array in each dimension. 直译:数组的维度.这是一个整数的元组,元组中的每一个元素对应着每一维度的大小(size). 再直译一点理解就是…
pandas快速入门 numpy之后让我们紧接着学习pandas.Pandas最初被作为金融数据分析工具而开发出来,后来因为其强大性以及友好性,在数据分析领域被广泛使用,下面让我们一窥究竟. 本文参考官网给出的10 Minutes to pandas 对象创建 创建Series #创建Series对象,index参数可省,默认为0~n-1的数字索引 #与numpy中的array一样,统一Series要求数据类型一致,这样可以加快处理速度 In [12]: s = pd.Series([1,2,3…