python pandas/numpy

import pandas as pd
pd.merge(dataframe1,dataframe2,on='common_field',how='outer')

 

replace NaN

dataframe1.fillna(0) #replace NaN to 0

 

transform from dataframe to Numpy array


np.array(dataframe['column'])

 

posted @   西番莲果汁  阅读(294)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示