![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
bingxue2017
这个作者很懒,什么都没留下…
展开
-
python案例
一:实验背景: 结合《python数据分析实战》里面的方法,对山东的十个城市的6月17日的气温进行收集,分析气温和距离海岸线距离(以下简称s)的关系. 用到的库 matplotlib 库画出图像 scikit-learn 库对数据进行回归分析 numpy 库对数据进行切片 工具:pycharm 数据:高密,莱阳等十个地区的气温数据,6月17日当天分时段的温度原创 2017-11-04 18:06:05 · 602 阅读 · 0 评论 -
Numpy 使用教程1
数值类型及多维数组1、安装:sudo pip install numpy(本地安装) sudo apt-get_install python-numpy(管理员身份打开)2、数值类型bool:布尔类型,1 个字节,值为 True 或 False。int:整数类型,通常为 int64 或 int32 。intc:与 C 里的 int 相同,通常为 int32 或 int6...原创 2018-05-27 14:28:47 · 349 阅读 · 0 评论 -
Numpy使用教程2
数组的基本操作1、重设形状 reshape 可以在不改变数组数据的同时,改变数组的形状。其中,numpy.reshape() 等效于 ndarray.reshape() 方法:numpy.reshape(a,newshape) 其中,a 表示原数组,newshape 用于指定新的形状(整数或者元组)。 示例代码:import numpy as np ...原创 2018-05-27 21:16:05 · 683 阅读 · 0 评论 -
Matplotlib画图
导入包:import numpy as npimport matplotlib as mplimport matplotlib.pyplot as plt%matplotlib inlinenp.random.seed(1000)y=np.random.standard_normal(20)x=range(len(y))plt.plot(x,y)plt.plot(y.cumsum())plt....原创 2018-06-08 19:32:28 · 407 阅读 · 0 评论