Skip to content

Instantly share code, notes, and snippets.

@MaximePawlakFr
Created February 6, 2019 12:35
Show Gist options
  • Save MaximePawlakFr/3bc36555f7cd53f578fd590830277b6e to your computer and use it in GitHub Desktop.
Save MaximePawlakFr/3bc36555f7cd53f578fd590830277b6e to your computer and use it in GitHub Desktop.
def set_pos(row, key):
 r = row.copy()
 return str(r[key][0]) + "," + str(r[key][1])
prec_pos_index = df_grouped.apply(lambda x:set_pos(x,"prec_point"), axis=1)
interv_pos_index = df_grouped.apply(lambda x:set_pos(x,"interv_point"), axis=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment