![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python基础
涛涛酱
北邮研究僧在读
展开
-
python 基础 —— pandas
1. pandas 基本介绍s = pd.Series([1, 3, 6, np.nan, 44, 1])print(s)dates = pd.date_range('20160101', periods=6)print(dates)df = pd.DataFrame(np.random.randn(6, 4), index=dates, columns=['a', 'b', 'c',...原创 2019-04-04 23:23:52 · 97 阅读 · 0 评论 -
python 基础 —— Matplotlib
1. figure 图像# 显示图像,figure下方的图标作用x = np.linspace(-3, 3, 50) # [-3, 3]区间生成50个点y1 = 2 * x + 1y2 = x**2 + 1plt.figure(num=1)plt.plot(x, y1)x = np.linspace(-3, 3, 50) # [-3, 3]区间生成50个点y1 = 2 * x + ...原创 2019-04-07 17:11:05 · 135 阅读 · 0 评论 -
python 基础 —— numpy
1. array的创建及属性# 定义array = np.array([[1, 2, 3], [2, 3, 4]])print(array)# 维度, shape, 元素个数print("number of dim:", array.ndim)print("shape:", array.shape)print("size:", array.size...原创 2019-04-03 10:54:15 · 198 阅读 · 0 评论