Python_Pandas
Python Pandas 資料分析
前言
Pandas 簡單來說就是我們生活中使用是試算表
首先要使用必須載入模組
1 | import pandas as pd |
如果是 “一維資料” , 用Series
串列資料為底
1 | import pandas as pd |
如果是 “雙維資料” , 用DataFrame
字典資料為底
DataFrame 組成方法如下:
pandas.DataFrame( data, index, columns, dtype, copy)
参數說明:
data:一組數據(ndarray、series, map, lists, dict )。
index:索引值,或者可以稱為行標籤
columns:列標籤,默認為 RangeIndex (0, 1, 2, …, n) 。
dtype:数據類型。
copy:拷貝數據,默認為 False。
1 | #範例1 |

Pandas 對決 Json
1 |
|

All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.