Hi, I have a dataframe column that consists of something closely resembling a python list of dictionaries as strings that contain coordinate points. I would like to parse these such that the output is a new data frame column in which each cell is a two-column matrix (for lat, long, respectively; sample below).
Has anyone come across something like this before? I'm a complete regex novice, so am not sure how to best approach this. Thanks!
@mishabalyasin you're right; I've updated the question subject, sorry for the confusion!
re: your solution, is there a way to keep list items separate such that the output is a vector of length 2, in which the first element is a 2x2 matrix, and the second element is a 4x2 matrix?