Skip to content

Instantly share code, notes, and snippets.

@walkerdb
Created November 21, 2015 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save walkerdb/7ff5cba0007eaff687e9 to your computer and use it in GitHub Desktop.
Save walkerdb/7ff5cba0007eaff687e9 to your computer and use it in GitHub Desktop.
def split_extents(extent_text):
extents = extent_text.split(",")
extents = filter(None, [item for extent in extents for item in extent.split(" and ")])
extents = [extent.strip(" ") for extent in extents]
return extents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment