
pandas in action.png
我用阿里云盤分享了「Manning.Pandas.in.Action.1617297437.pdf」,你可以不限速下載??
復(fù)制這段內(nèi)容打開「阿里云盤」App 即可獲取
鏈接:https://www.aliyundrive.com/s/ixoBQVNzL2k
本篇筆記為原書第十四章節(jié)的內(nèi)容。
- Visualization
pandas seamlessly integrates with many popular Python data visualization libraries,including Matplotlib, seaborn, and ggplot.
Pandas默認(rèn)是使用Matplotlib作為其可視化的庫,在使用時(shí)需要確認(rèn)是否正確安裝Matplotlib庫。
%matplotlib inline
import pandas as pd
import matplotlib.pyplot as plt
- df['col-name'].plot() # 數(shù)值型列進(jìn)行可視化
- df['col-name'].value_counts().plot(kind = "bar") # 某類別列進(jìn)行柱狀圖可視化
- df['col-name'].value_counts().plot(kind = "barh") # 水平柱狀圖
- df['col-name'].value_counts().plot(kind = "pie") # 餅圖
實(shí)際應(yīng)用中,可根據(jù)需要查閱相關(guān)的文獻(xiàn)。
至此本書的筆記即已完成,后續(xù)可能會(huì)在實(shí)際應(yīng)用中回頭來優(yōu)化完善部分章節(jié)內(nèi)容,同時(shí)本書電子版已分享在阿里云盤里。
我用阿里云盤分享了「Manning.Pandas.in.Action.1617297437.pdf」,你可以不限速下載??
復(fù)制這段內(nèi)容打開「阿里云盤」App 即可獲取
鏈接:https://www.aliyundrive.com/s/ixoBQVNzL2k