diff --git a/Day66-70/66.数据分析概述.md b/Day66-70/66.数据分析概述.md index 63749da..f665e09 100644 --- a/Day66-70/66.数据分析概述.md +++ b/Day66-70/66.数据分析概述.md @@ -195,12 +195,10 @@ Notebook是基于网页的用于交互计算的应用程序,可以用于代码 $ - **分位数**:将一个随机变量的概率分布范围分为几个具有相同概率的连续区间,比如最常见的中位数(二分位数,median),就是将数据集划分为数量相等的上下两个部分。除此之外,常见的分位数还有四分位数(quartile)、百分位数(percentile)等。 - + - 中位数: - $ - {Q}_{\frac {1}{2}}(x)={\begin{cases}x'_{\frac{n+1}{2}},&n是奇数\\{\frac {1}{2}}(x'_{\frac{n}{2}}+x'_{{\frac{n}{2}}+1}),&n是偶数\end{cases}} - $ - + ${Q}_{\frac {1}{2}}(x)={\begin{cases}x'_{\frac{n+1}{2}},&{n是奇数}\\{\frac {1}{2}}(x'_{\frac{n}{2}}+x'_{{\frac{n}{2}}+1}),&{n是偶数}\end{cases}}$ + - 四分位数: **第一四分位数**($Q_1$),又称**较小四分位数**或**下四分位数**,等于该样本中所有数值由小到大排列后第25%的数字。 diff --git a/Day66-70/67.NumPy的应用.md b/Day66-70/67.NumPy的应用.md index 50a029b..4905e2d 100644 --- a/Day66-70/67.NumPy的应用.md +++ b/Day66-70/67.NumPy的应用.md @@ -7,12 +7,24 @@ Numpy最为核心的数据类型是`ndarray`,使用`ndarray`可以处理一维 ### 创建数组对象 1. 一维数组 + - 方法一:使用array函数,通过list创建数组对象 + - 方法二:使用arange函数,指定取值范围创建数组对象 + - 方法三:使用linspace函数,用指定范围均匀间隔的数字创建数组对象 + - 方法四:使用numpy.random模块的函数生成随机数创建数组对象 2. 二维数组 -3. 多维数组 + - 方法一:使用array函数,通过嵌套的list创建数组对象 + - 方法二:使用zeros、ones、full函数指定数组的形状创建数组对象 + - 方法三:使用eye函数创建单位矩阵 + - 方法四:通过reshape将一维数组变成二维数组 + - 方法五:通过numpy.random模块的函数生成随机数创建数组对象 +3. 多维数组:跟上面的情况相似,可以通过下面的例子进行了解。 ### 数组对象基本属性 - +1. size属性:元素个数 +2. shape属性:数组的形状 +3. dtype属性:元素的数据类型 +4. ndim属性:数组的维度 ### 数组对象常用方法 diff --git a/Day66-70/69.数据可视化.md b/Day66-70/69.数据可视化.md index fb1891d..0f701a5 100644 --- a/Day66-70/69.数据可视化.md +++ b/Day66-70/69.数据可视化.md @@ -24,6 +24,12 @@ from matplotlib import pyplot as plt %matplotlib inline ``` +通过下面的魔法指令,可以生成矢量图(SVG)。 + +```Python +%config InlineBackend.figure_format='svg' +``` + #### 绘图的流程 1. 创建画布 diff --git a/Day66-70/70.数据分析项目实战.md b/Day66-70/70.数据分析项目实战.md index 09158a7..c7de35c 100644 --- a/Day66-70/70.数据分析项目实战.md +++ b/Day66-70/70.数据分析项目实战.md @@ -1,2 +1,14 @@ ## 数据分析项目实战 +### 2020年北京积分落户分析 + + + +### 某招聘网站招聘数据分析 + + + +### 某电商网站订单数据分析 + + + diff --git a/Day66-70/res/C558C1F83388892F5A2305AE4AAEB865.jpg b/Day66-70/res/C558C1F83388892F5A2305AE4AAEB865.jpg index ff4479c..afa74ae 100644 Binary files a/Day66-70/res/C558C1F83388892F5A2305AE4AAEB865.jpg and b/Day66-70/res/C558C1F83388892F5A2305AE4AAEB865.jpg differ diff --git a/Day66-70/res/IMG_3305(20201030-083355).PNG b/Day66-70/res/IMG_3305(20201030-083355).PNG index f18b620..c690b71 100644 Binary files a/Day66-70/res/IMG_3305(20201030-083355).PNG and b/Day66-70/res/IMG_3305(20201030-083355).PNG differ diff --git a/Day66-70/res/IMG_3306(20201030-083427).PNG b/Day66-70/res/IMG_3306(20201030-083427).PNG index d6197d9..b9c85d6 100644 Binary files a/Day66-70/res/IMG_3306(20201030-083427).PNG and b/Day66-70/res/IMG_3306(20201030-083427).PNG differ diff --git a/Day66-70/res/IMG_3307(20201030-083545).PNG b/Day66-70/res/IMG_3307(20201030-083545).PNG index 1a099c5..d4d64b0 100644 Binary files a/Day66-70/res/IMG_3307(20201030-083545).PNG and b/Day66-70/res/IMG_3307(20201030-083545).PNG differ diff --git a/Day66-70/res/IMG_3308(20201030-083633).PNG b/Day66-70/res/IMG_3308(20201030-083633).PNG index a8ef33c..895ab17 100644 Binary files a/Day66-70/res/IMG_3308(20201030-083633).PNG and b/Day66-70/res/IMG_3308(20201030-083633).PNG differ diff --git a/Day66-70/res/IMG_3309(20201030-084050).PNG b/Day66-70/res/IMG_3309(20201030-084050).PNG index 34f75ad..e1b8c76 100644 Binary files a/Day66-70/res/IMG_3309(20201030-084050).PNG and b/Day66-70/res/IMG_3309(20201030-084050).PNG differ diff --git a/Day66-70/res/IMG_3310(20201030-084209).PNG b/Day66-70/res/IMG_3310(20201030-084209).PNG index 098ebde..b844831 100644 Binary files a/Day66-70/res/IMG_3310(20201030-084209).PNG and b/Day66-70/res/IMG_3310(20201030-084209).PNG differ diff --git a/Day66-70/res/IMG_3311(20201030-084301).PNG b/Day66-70/res/IMG_3311(20201030-084301).PNG index 889951e..13fc12f 100644 Binary files a/Day66-70/res/IMG_3311(20201030-084301).PNG and b/Day66-70/res/IMG_3311(20201030-084301).PNG differ diff --git a/Day66-70/res/IMG_3312(20201030-084448).PNG b/Day66-70/res/IMG_3312(20201030-084448).PNG index aca0106..5322ad3 100644 Binary files a/Day66-70/res/IMG_3312(20201030-084448).PNG and b/Day66-70/res/IMG_3312(20201030-084448).PNG differ diff --git a/Day66-70/res/IMG_3313(20201030-084559).PNG b/Day66-70/res/IMG_3313(20201030-084559).PNG index 534843a..7a2d68f 100644 Binary files a/Day66-70/res/IMG_3313(20201030-084559).PNG and b/Day66-70/res/IMG_3313(20201030-084559).PNG differ diff --git a/Day66-70/res/IMG_3314(20201030-084807).PNG b/Day66-70/res/IMG_3314(20201030-084807).PNG index 8e7adab..3df90e1 100644 Binary files a/Day66-70/res/IMG_3314(20201030-084807).PNG and b/Day66-70/res/IMG_3314(20201030-084807).PNG differ diff --git a/Day66-70/res/IMG_3315(20201030-084832).PNG b/Day66-70/res/IMG_3315(20201030-084832).PNG index e14305a..31a6752 100644 Binary files a/Day66-70/res/IMG_3315(20201030-084832).PNG and b/Day66-70/res/IMG_3315(20201030-084832).PNG differ diff --git a/Day66-70/res/IMG_3316(20201030-084855).PNG b/Day66-70/res/IMG_3316(20201030-084855).PNG index 1f206da..d3bb8d9 100644 Binary files a/Day66-70/res/IMG_3316(20201030-084855).PNG and b/Day66-70/res/IMG_3316(20201030-084855).PNG differ diff --git a/Day66-70/res/IMG_3317(20201030-090626).PNG b/Day66-70/res/IMG_3317(20201030-090626).PNG index b605e79..9e4c38a 100644 Binary files a/Day66-70/res/IMG_3317(20201030-090626).PNG and b/Day66-70/res/IMG_3317(20201030-090626).PNG differ diff --git a/Day66-70/res/IMG_3318(20201030-091317).PNG b/Day66-70/res/IMG_3318(20201030-091317).PNG index dabdbd3..0ee67be 100644 Binary files a/Day66-70/res/IMG_3318(20201030-091317).PNG and b/Day66-70/res/IMG_3318(20201030-091317).PNG differ diff --git a/Day66-70/res/IMG_3319(20201030-091350).PNG b/Day66-70/res/IMG_3319(20201030-091350).PNG index 2c9df49..178ec1b 100644 Binary files a/Day66-70/res/IMG_3319(20201030-091350).PNG and b/Day66-70/res/IMG_3319(20201030-091350).PNG differ diff --git a/Day66-70/res/IMG_3320(20201030-092925).PNG b/Day66-70/res/IMG_3320(20201030-092925).PNG index fe85d5a..929d074 100644 Binary files a/Day66-70/res/IMG_3320(20201030-092925).PNG and b/Day66-70/res/IMG_3320(20201030-092925).PNG differ diff --git a/Day66-70/res/IMG_3321(20201030-093408).PNG b/Day66-70/res/IMG_3321(20201030-093408).PNG index 186216a..6547071 100644 Binary files a/Day66-70/res/IMG_3321(20201030-093408).PNG and b/Day66-70/res/IMG_3321(20201030-093408).PNG differ diff --git a/Day66-70/res/IMG_3322(20201030-093446).PNG b/Day66-70/res/IMG_3322(20201030-093446).PNG index ac167d7..d8afc28 100644 Binary files a/Day66-70/res/IMG_3322(20201030-093446).PNG and b/Day66-70/res/IMG_3322(20201030-093446).PNG differ diff --git a/Day66-70/res/IMG_3323(20201030-093637).PNG b/Day66-70/res/IMG_3323(20201030-093637).PNG index 975aeae..ac6aa55 100644 Binary files a/Day66-70/res/IMG_3323(20201030-093637).PNG and b/Day66-70/res/IMG_3323(20201030-093637).PNG differ diff --git a/Day66-70/res/IMG_3324(20201030-094125).PNG b/Day66-70/res/IMG_3324(20201030-094125).PNG index 1f0a9a3..e447804 100644 Binary files a/Day66-70/res/IMG_3324(20201030-094125).PNG and b/Day66-70/res/IMG_3324(20201030-094125).PNG differ diff --git a/Day66-70/res/IMG_3325(20201030-101519).PNG b/Day66-70/res/IMG_3325(20201030-101519).PNG index b83b954..b3bb4cc 100644 Binary files a/Day66-70/res/IMG_3325(20201030-101519).PNG and b/Day66-70/res/IMG_3325(20201030-101519).PNG differ diff --git a/Day66-70/res/QQ20201208-135154@2x.png b/Day66-70/res/QQ20201208-135154@2x.png index 2cf5a85..2bfff20 100644 Binary files a/Day66-70/res/QQ20201208-135154@2x.png and b/Day66-70/res/QQ20201208-135154@2x.png differ diff --git a/Day66-70/res/download-anaconda.png b/Day66-70/res/download-anaconda.png index 394b654..9817174 100644 Binary files a/Day66-70/res/download-anaconda.png and b/Day66-70/res/download-anaconda.png differ diff --git a/Day66-70/res/install-anaconda.png b/Day66-70/res/install-anaconda.png index 4e4aa0c..1e23710 100644 Binary files a/Day66-70/res/install-anaconda.png and b/Day66-70/res/install-anaconda.png differ diff --git a/Day66-70/res/jupyter-create-notebook.png b/Day66-70/res/jupyter-create-notebook.png index abece37..02a17f0 100644 Binary files a/Day66-70/res/jupyter-create-notebook.png and b/Day66-70/res/jupyter-create-notebook.png differ diff --git a/Day66-70/res/notebook-get-help.png b/Day66-70/res/notebook-get-help.png index b3aaa1c..efc7c68 100644 Binary files a/Day66-70/res/notebook-get-help.png and b/Day66-70/res/notebook-get-help.png differ diff --git a/Day66-70/res/notebook-magic-command.png b/Day66-70/res/notebook-magic-command.png index 854e252..a2dbe61 100644 Binary files a/Day66-70/res/notebook-magic-command.png and b/Day66-70/res/notebook-magic-command.png differ diff --git a/Day66-70/res/notebook-search-namespace.png b/Day66-70/res/notebook-search-namespace.png index ef98fc8..717b8bc 100644 Binary files a/Day66-70/res/notebook-search-namespace.png and b/Day66-70/res/notebook-search-namespace.png differ diff --git a/Day66-70/res/notebook-shortcut.png b/Day66-70/res/notebook-shortcut.png index 9cea814..68dc20f 100644 Binary files a/Day66-70/res/notebook-shortcut.png and b/Day66-70/res/notebook-shortcut.png differ diff --git a/Day66-70/res/quartile_and_3sigma.png b/Day66-70/res/quartile_and_3sigma.png index 338a4ce..5d4c0da 100644 Binary files a/Day66-70/res/quartile_and_3sigma.png and b/Day66-70/res/quartile_and_3sigma.png differ diff --git a/Day66-70/res/run-anaconda-navigator.png b/Day66-70/res/run-anaconda-navigator.png index ab3da39..66456ad 100644 Binary files a/Day66-70/res/run-anaconda-navigator.png and b/Day66-70/res/run-anaconda-navigator.png differ diff --git a/Day66-70/res/use-jupyter-notebook.png b/Day66-70/res/use-jupyter-notebook.png index 52aa692..fdca566 100644 Binary files a/Day66-70/res/use-jupyter-notebook.png and b/Day66-70/res/use-jupyter-notebook.png differ