Skip to content

Instantly share code, notes, and snippets.

@williamgilpin
Created March 9, 2019 05:30
Show Gist options
  • Save williamgilpin/abe923ed2855b9171470b94e95c1d43f to your computer and use it in GitHub Desktop.
Save williamgilpin/abe923ed2855b9171470b94e95c1d43f to your computer and use it in GitHub Desktop.
import glob
all_names = glob.glob('*')
all_vals1 = [thing.split('$')[-1] for thing in all_names]
all_vals2 = [float(thing[:-4]) for thing in all_vals1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment