数据分析
Andy Dennis
知足而上进,温柔且坚定,用代码书写身边的世界。
展开
-
matplotlib常见基础用法总结
前言本文的例子要求您有numpy, pandas, matplotlib,如果没有,需要您pip install numpypip install pandaspip install matplotlib如果下载速度太慢,请看我另一篇博客: pip镜像管理和npm镜像管理然后每次使用numpy都需要import 一下,以下默认都有import numpy as npimport pandas as pdimport matplotlib.pyplot as plt这篇文章会给大家看原创 2020-08-05 23:37:14 · 898 阅读 · 0 评论 -
pandas基础常用用法总结
准备其实呢,pandas是再numpy的基础上封装了一些功能,所以您看这篇文章的时候会觉得,好像pandas和Numpy用法有类似的地方。您需要有pandas和numpy, 如果没有,需要您pip install numpypip install pandas如果下载速度太慢,请看我另一篇博客: pip镜像管理和npm镜像管理然后每次使用numpy都需要import 一下,以下默认都有import numpy as npimport pandas as pd1. pandas.Ser原创 2020-08-05 16:14:56 · 817 阅读 · 0 评论 -
numpy 基础常见用法总结
前期准备使用numpy需要您先pip install numpy如果下载速度太慢,请看我另一篇博客: pip镜像管理和npm镜像管理然后每次使用numpy都需要import 一下,一下默认都有import numpy as np1. 构造numpy数组例子1: np.arraya = np.array([[1, 2, 3], [4, 5, 6]])print(a)运行结果:例子2: np.arangea = np.arange(15).reshape(3,5)print原创 2020-08-05 12:18:17 · 1001 阅读 · 1 评论 -
找个函数来拟合5201314
你们知道y = 0.02222 x6 - 0.458333 x5 + 3.597222 x4 - 13.625 x 3 + 26.880555 x 2 - 29.416666 x + 18,(x = 1, 2, …, 7) 其中 y 四舍五入取整数。你们知道这个函数代表的意思吗?# %%import numpy as npimport matplotlib.pyplot as pltx = [1, 2, 3, 4, 5, 6, 7]y = [5, 2, 0, 1, 3, 1, 4]#原创 2020-08-02 12:33:43 · 452 阅读 · 0 评论