![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
领悟大数据
有多努力,就有多自由
展开
-
python数据分析-numpy核心包
######创建array import numpy as np np.array([1,2,3]) np.array([0]*10) a = np.zeros(10) a.dtype a = np.zeros(10,dtype = 'int') a = np.ones(10) a = np.empty(100) a #包前不包后 np.arange(2,10,3) np.ara...原创 2019-01-09 17:17:13 · 175 阅读 · 0 评论 -
python数据分析-pandas核心包
###series介绍 #一种类似于以为数组的对象,由一组数据和一组与之相关的数据标签(索引)组成。 import pandas as pd pd.Series([2,3,4,5]) sr = pd.Series([2,3,4,5],index=['a','b','c','d']) pd.Series(np.arange(5)) sr[0] #索引和标签都可以作为索引 sr+2 s...原创 2019-01-09 17:18:17 · 249 阅读 · 0 评论 -
python数据分析-matplotlib核心包
###########matplotlib import matplotlib.pyplot as plt plt.plot([1,2,3,4,5],[2,4,6,1,3],"o",label='LineA') ##折线图,o为点,o-为点加线 plt.plot([5,4,3,2,1],[2,4,6,1,3],color='red',marker='v',label='LineB') plt...原创 2019-01-09 17:19:56 · 259 阅读 · 0 评论