I can't get my head around to parse this data. I've got a column that contains dirty regional data stored as text. I want to split it up so I can make it clean.
examples:
World|USA|New York|New York City|Manhattan|Central Park North
World|USA|New York|Hamptons|Bridgehampton
World|Mexico|Mexican Riviera|Yelapa
As you can see, the number of |'s per row can differ.
How could I write a function that parses the text between each | | ?
examples:
World|USA|New York|New York City|Manhattan|Central Park North
World|USA|New York|Hamptons|Bridgehampton
World|Mexico|Mexican Riviera|Yelapa
As you can see, the number of |'s per row can differ.
How could I write a function that parses the text between each | | ?