23 great pandas code Posted on 2019-01-06 In pandas 原文链接 Convert data frame to numpy array1df.as_matrix() Apply a function to a data frameThis one will multiple all values in the “height” column of the data frame by 2 1df["height"].apply(lambda height: 2 * height)