iT邦幫忙

2025 iThome 鐵人賽

DAY 1
0

Pandas是一種資料分析處理套件,提供Series and DataFrame等資料結構。

安裝Pandas

pandas不是python內建的套件,所以需要事前安裝。

pip install pandas

導入Pandas

import pandas as pd

Pandas Series

Pandas Series主要是處理單一維度的資料,just like Excel的某一欄。
最後一欄會顯示資料型態。
https://ithelp.ithome.com.tw/upload/images/20250830/20168366daahPrnPMO.png
在同個Series裡面可以寫入index關鍵參數
https://ithelp.ithome.com.tw/upload/images/20250830/20168366MvoVL2FKrB.png
查詢是否存在某個index
https://ithelp.ithome.com.tw/upload/images/20250830/20168366ZAikwZCNlq.png


上一篇
Matplotlib套件
下一篇
張量
系列文
深度學習Tensorflow 2.X7
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言