![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据分析
醉梦引天河
秃头使我变强
展开
-
个人笔记——数据分析·Python·Numpy
Python·NumpyNumpy基本操作Numpy基本操作创建一维数组import numpy as nplist1 = [1, 2, 3, 4]#转换为数组oneArray = np.array(list1)t2 = np.array(range(10))t3 = np.arange(0, 10, 2)创建二维数组import numpy as nplist2 = [[1, 2], [3, 4], [5, 6]]twoArray = np.array(list2)原创 2021-05-26 21:02:19 · 153 阅读 · 0 评论 -
个人笔记——数据分析·Python·Matplotlib
Python·MatplotlibMatplotlib基本使用Matplotlib图像结构Matplotlib基本使用例1# 导入模块import matplotlib.pyplot as plt#传入x,y值plt.plot([x坐标], [y坐标], color等属性设置)#如plt.plot([1, 2, 3], [4, 5, 6])#展示图形plt.show()例2from matplotlib import pyplot as pltx = range(1, 8)y原创 2021-05-21 19:48:50 · 224 阅读 · 3 评论