註:執行軟體為jupyter notebook # 多次相乘 ```python= 變數=變數**想要變數自己相乘幾次 ``` ex ```python= a=2 a=a**3 >>>a=8 ``` # pandas ## 宣告 ```python= import pandas as pd ``` ## 讀入資料檔案 ```python= 變數= pd.read_檔案的形式("檔案名稱") ``` ex ```python= df= pd.read_csv("未命名的試算表 - 工作表1 (1).csv") ``` ## 查看資料(前幾項 ```python= 變數.head() ``` ex  ## describe ### 功能:把所有東西列出來ex平均,標準差等等 ```python= 變數.describe() ``` ex  ## corr ### 功能:算全部變數的相關係數 ```python= 變數.corr() 進階 df.變數名稱1.corr(df.變數名稱2) 功能:算兩變數名稱之相關係數¶ ``` ex  # 參考資料 e-want自主學習網 # 其它文章 https://hackmd.io/@RwgiwD_zQHaL9zi1EW6ewg/HJITni2P3 https://hackmd.io/@RwgiwD_zQHaL9zi1EW6ewg/HJKX1n3wh
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up