class - pandas (parse structures text)

最後更新: 2019-02-13

介紹

Data Science 工具來

功用: data structures and data analysis tools for the Python

HomePage: https://pandas.pydata.org/

 


Install

 

pip install pandas

yum install python-pandas                 # C7, Ver:0.17.1

 


DataFrame

 

pandas 內的 data type 是 DataFrame (df)

運作過程:

RAW Data -> Dict / List / Json / XML -> DataFrame

 


Example - CSV

 

import pandas as pd

df = pd.read_csv('data.csv')

print (df)                       # preview

 

Creative Commons license icon Creative Commons license icon