莫煩_把玩你的數據 機器學習Numpy & Pandas
介紹兩個科學運算當中最為重要的兩個模塊,一個是 numpy,一個是 pandas。任何關於數據分析的模塊都少不了它們兩個。以及學習Python資料視覺化強大工具matplotlib
內容簡介
作者介紹
適合人群
你將會學到什麼
購買須知
-
Numpy & Pandas 簡介
Numpy & Pandas 有什麼用?
-
1. numpy & pandas 有什麼用?
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 簡單教學教程numpy & pandas 都是python 科學運算中必不可少的組成部分. 學會應用它們會對數據分析和機器學習有很大的幫助播放列表: https://www.youtube.com... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/1-1-why/
-
2. numpy & pandas 安裝
詳細文字教程: https://morvanzhou.github.io/tutorials/ 如果你是Windows 用戶, 想用pip 安裝numpy 或者pandas 可能會遇到安裝時報錯. 你可以嘗試不要用pip 安裝. 解決的辦法在這裡: 英文的方法: http://stackoverflow.... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/1-2-install/
-
-
Numpy 學習
Numpy 基礎知識
-
3. numpy 屬性 (教學教程)
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 簡單教學教程numpy 的屬性基本上有這幾種常用到的, np.size np.shape np.ndim 播放列表: https://www .youtube.com/playlist?list=PLX... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/2-1-np-attributes/
-
4. numpy 的創建 array
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 簡單教學教程創建array 有很多形式. 具體可以參考: https://docs.scipy.org/doc/numpy-dev/user/quickstart. html 播放列表: https:... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/2-2-np-array/
-
5. numpy的基礎運算
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 numpy 簡單教學教程numpy 中的加減乘除和python 的類似. 但矩陣的運算可能就不太一樣. 矩陣的乘法是以np.dot () 的形式. 播放列表: https://www.youtube... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/2-3-np-math1/
-
6. numpy的基礎運算2
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 簡單教學教程今天講到了: np.argmax() np.argmin() np.average() np.mean() np.median() np .cumsum() np.diff() np.non... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/2-4-np-math2/
-
7. numpy 的索引
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 簡單教學教程我們了解瞭如何對numpy array 進行索引, 可以用到一下各種形式: A[2, 3] A[:, 1] A[1] = A[1, :] for row in A: print(row)... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/2-5-np-indexing/
-
8. numpy 的 array 合併
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 簡單教學教程numpy array 都可以進行兩個或多個array 的橫向或縱向的合併. 我們可以用到: np.vstack((A, B)) # 縱向合併np.stack((A,B)) # 橫向合併... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/2-6-np-concat/
-
9. numpy 的 array 分割
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 簡單教學教程numpy array 同樣是可以進行分割的, 包括橫向和縱向分割: A = np.arange(12).reshape((3,4 )) print(np.split(A, 4, axis=... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/2-7-np-split/
-
10. numpy 的 copy & deep copy
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 簡單教學教程如果直接把numpy array賦值給另一個變量, 改變任意的一個變量都會影響到其他變量. 比如: a = np.arange( 4) b = aa[0] = 11 那這是b[0] 也會... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/2-8-np-copy/
-
-
Pandas學習
Pandas 基礎知識
-
11. pandas 基本介紹
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 pandas 基礎 教學教程 本節練習代碼: https://github.com/MorvanZhou/tutorials/blob/master/numpy%26pandas/11_pandas_i... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/3-1-pd-intro/
-
12. pandas 選擇數據
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 pandas 基礎 教學教程 本節練習代碼: https://github.com/MorvanZhou/tutorials/blob/master/numpy%26pandas/12_selectio... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/3-2-pd-indexing/
-
13. pandas 設置值
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 pandas 基礎 教學教程 本節練習代碼: https://github.com/MorvanZhou/tutorials/blob/master/numpy%26pandas/13_set_valu... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/3-3-pd-assign/
-
14. pandas 處理丟失數據
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 pandas 基礎教學教程本節練習代碼: https://github.com/MorvanZhou/tutorials/blob/master/numpy%26pandas/14_nan.py 有... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/3-4-pd-nan/
-
15. pandas 導入導出
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 pandas 基礎 教學教程 本節練習代碼: https://github.com/MorvanZhou/tutorials/tree/master/numpy%26pandas/15_read_to ... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/3-5-pd-to/
-
16. pandas 合併 concat
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 pandas 基礎教學教程本節練習代碼: https://github.com/MorvanZhou/tutorials/blob/master/numpy%26pandas/16_concat.p. .. 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/3-6-pd-concat/
-
17. pandas 合併 merge
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 pandas 基礎教學教程本節練習代碼: https://github.com/MorvanZhou/tutorials/blob/master/numpy%26pandas/17_merge.py. .. 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/3-7-pd-merge/
-
18. pandas plot
詳細文字教程: https://morvanzhou.github.io/tutorials/ python3 pandas 基礎教學教程本節練習代碼: https://github.com/MorvanZhou/tutorials/blob/master/numpy%26pandas/18_plot.py . .. 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/np-pd/3-8-pd-plot/
-
-
Matplotlib 基礎應用
資料視覺化工具
-
Matplotlib 1 Why? (python 數據可視化教學教程) - YouTube
我們之所以用matplotlib 就是因為他在可視化上的強大. 不僅有2d 可視化還有3d 可視化. 除了線圖, 還有散點圖, 條形圖, 柱狀圖, 可視化圖片, 等高線, 等等.你的數據逃不出他的掌心. Matplotlib 播放列表: https://www.youtube.com/playlist?lis... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/1-1-why/
-
Matplotlib 2. 安裝
安裝說明: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt2_install.py 對於Windows, MacOS, Linux 的安裝方式各不相同. Matplotlib 播放列表: https://www.yout.. . 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/1-2-install/
-
Matplotlib 3. 基本用法
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt3_simple_plot.py Matplotlib 播放列表: https://www.youtube.com/playlist?list=PLXO45tsB9... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/2-1-basic-usage/
-
Matplotlib 4. figure 圖像
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt4_figure.py matplotlib 的figure 就是一個單獨的figure 小窗口, 小窗口裡面還可以有更多的小圖片. Matplotlib 播... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/2-2-figure/
-
Matplotlib 5. 設置坐標軸1
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt5_ax_setting1.py 在matplotlib 中如何設置坐標軸的範圍, 單位長度, 替代文字等等. Matplotlib 播放列表: https:/ /... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/2-3-axis1/
-
Matplotlib 6. 設置坐標軸 2
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt6_ax_setting2.py 這次會說到在我們如何移動matplotlib 中axis 坐標軸的位置. Matplotlib 播放列表: https:// ww... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/2-4-axis2/
-
Matplotlib 7. Legend 圖例
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt7_legend.py matplotlib 中的legend 圖例就是為了幫我們展示出每個數據對應的名稱. 更好的讓讀者認識到你的數據結構. Matplotli... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/2-5-lagend/
-
Matplotlib 8. Annotation 標註
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt8_annotation.py 在用matplotlib 做標註annotation 的時候,我們其實可以用兩種方法, 一種是用plt 裡面的annotat ... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/2-6-annotation/
-
Matplotlib 9. tick 能見度
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt9_tick_visibility.py 有時候數據多也是挺煩人的. 比如數據可能會擋道一些重要的東西. 那我們就可以設置bbox 來解決被擋住的問題. Matp... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/2-7-tick-visibility/
-
-
Matplotlib 圖片種類
不同數據種類圖片的視覺話方式
-
Matplotlib 10. scatter 散點圖
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt10_scatter.py 當然, matplotlib 是可以做散點圖scatter 的. 而且還可以做散點圖很多特效, 我們來看看吧. Matplotlib ... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/3-1-scatter/
-
Matplotlib 11. bar 柱狀圖
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt11_bar.py matplotlib 中的bar 條形圖, 柱狀圖是如何使用的呢. 這就是一個簡單好玩的例子. Matplotlib播放列表: https:... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/3-2-Bar/
-
Matplotlib 12. contours 等高線圖
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt12_contours.py 用 matplotlib 畫等高線. Matplotlib 播放列表: https://www.youtube.com/playlis... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/3-3-contours/
-
Matplotlib 13. image 圖片
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt13_image.py 使用 matplotlib 展示圖片 image 的方法. Matplotlib 播放列表: https://www.youtube.com... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/3-4-image/
-
Matplotlib 14. 3D 數據
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt14_3d.py 使用matplotlib 展示3d 圖像的效果. 還有3d 圖像的等高線圖. Matplotlib 播放列表: https:/ /www.youtu... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/3-5-3d/
-
-
Matplotlib 多圖合併顯示
matplotlib 是可以組合許多的小圖,放在一張大圖裡面顯示的
-
Matplotlib 15. subplot 多合一顯示
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt15_subplot.py matplotlib 是可以組合許多的小圖,放在一張大圖裡面顯示的. 使用到的方法叫作subplot . Matplotlib 播放列表... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/4-1-subpot1/
-
Matplotlib 16. 分格顯示
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt16_grid_subplot.py matplotlib 的subplot 還可以是分隔顯示的, 用這種grid 方法,個人覺得比之前那種方法要方便. Mat... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/4-2-subplot2/
-
Matplotlib 17. 圖中圖
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt17_plot_in_plot.py 怎麼樣在圖片中在添加一張小的圖片註解呢? 這個教程就告訴你. Matplotlib 播放列表: https://www.you... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/4-3-plot-in-plot/
-
Matplotlib 18. 次坐標軸
本節代碼: https://github.com/MorvanZhou/tutorials/blob/master/matplotlibTUT/plt18_secondary_yaxis.py 有時候我們會要用到次坐標軸, 在一種圖上兩個y 軸. 同樣可以用matplotlib做到,而且很簡單. Matpl... 影片來源:https://morvanzhou.github.io/tutorials/data-manipulation/plt/4-4-sencondary-axis/
-
-
Matplotlib 動畫
製作動畫