[] Pandas pandas in common function

For dataframe formatted data:

1, data.value_counts (): the number of statistical data presented

2, data.query ( "label == 0"): the condition specified query data

3, data.plot (): the format of the data visualization dataframe

4, pandas.get_dummies (data): the column data indicated by a one-hot encoding

5, pandas.concat ([data1, data2], axis): In the data1 and data2 axis =? Splicing on Dimension

6, data.fillna (0): 0 is filled with the missing data

7, data.isna (): those data query missing values, such aspandas.isna(dfdata['Age']).astype('int32')将名为'Age'那列的数据的缺失值用1表示

 

Another update, met on the record sum of slowly accumulated

Guess you like

Origin www.cnblogs.com/xiximayou/p/12638245.html