Python Data Analysis Library Pandas

Introduced

 import pandas as pd

《《------------------------------------------------------------------------------------------------------》》

use

Pandas data structures: one-dimensional data structure   

Create dictionary format: pd.Series ({ "Today's sales": 10086, "Today's turnover": "1000084"}, time = '2018.8.21')    

Create an array format: pd.Series ([10086,1000084], index = [ 'sales today,' 'today's turnover'], time = '2018.8.21')

 

 《《------------------------------------------------------------------------------------------------------》》

 

Dataframe: two-dimensional data structure is a data structure in tabular form, a "two-dimensional array tagged" with (index) and (Label column)

create  

data = {'name':['Jake','Jeek','Anmi'],'age':[22,15,32],'time':['2019.2.1','2019.3.1','2019.4.2']}

pd.DataFrame (data) form a table of data

Guess you like

Origin www.cnblogs.com/reeber/p/11390155.html