text_plain_output_1.png
structures['nn_1'] = structures['nearestn'].apply(lambda x: x[0])
structures['nn_2'] = structures['nearestn'].apply(lambda x: x[1])
structures['nn_3'] = structures['nearestn'].apply(lambda x: x[2])
structures['nn_4'] = structures['nearestn'].apply(lambda x: x[3])
structures['nn_1_dist'] = structures['nearestn'].apply(lambda x: x[4])
structures['nn_2_dist'] = structures['nearestn'].apply(lambda x: x[5])
structures['nn_3_dist'] = structures['nearestn'].apply(lambda x: x[6])
structures['nn_4_dist'] = structures['nearestn'].apply(lambda x: x[7])
structures['nn_dx_1'] = structures['nearestn'].apply(lambda x: x[8]) - structures['x']
structures['nn_dx_2'] = structures['nearestn'].apply(lambda x: x[9]) - structures['x']
structures['nn_dx_3'] = structures['nearestn'].apply(lambda x: x[10]) - structures['x']
structures['nn_dx_4'] = structures['nearestn'].apply(lambda x: x[11]) - structures['x']
structures['nn_dy_1'] = structures['nearestn'].apply(lambda x: x[12]) - structures['y']
structures['nn_dy_2'] = structures['nearestn'].apply(lambda x: x[13]) - structures['y']
structures['nn_dy_3'] = structures['nearestn'].apply(lambda x: x[14]) - structures['y']
structures['nn_dy_4'] = structures['nearestn'].apply(lambda x: x[15]) - structures['y']
structures['nn_dz_1'] = structures['nearestn'].apply(lambda x: x[16]) - structures['z']
structures['nn_dz_2'] = structures['nearestn'].apply(lambda x: x[17]) - structures['z']
structures['nn_dz_3'] = structures['nearestn'].apply(lambda x: x[18]) - structures['z']
structures['nn_dz_4'] = structures['nearestn'].apply(lambda x: x[19]) - structures['z']
structures['pca_x'] = structures['nearestn'].apply(lambda x: x[20])
structures['pca_y'] = structures['nearestn'].apply(lambda x: x[21])
structures = structures.drop(columns='nearestn', axis=0)
structures.head(n=10)