Skip to content

Instantly share code, notes, and snippets.

@JonathanReeve
Created February 17, 2020 20:48
Show Gist options
  • Save JonathanReeve/6ab6cdbbd8ff75e6fc90903b61054ca7 to your computer and use it in GitHub Desktop.
Save JonathanReeve/6ab6cdbbd8ff75e6fc90903b61054ca7 to your computer and use it in GitHub Desktop.
import pandas as pd
csv = ",name,hex,n,parent,parentHex\n0,dust,#b2996e,3,orange,#FFA500\n1,tea,#65ab7c,16,grey,#BEBEBE\n2,spruce,#0a5f38,1,black,#000000\n3,desert,#ccad60,6,orange,#FFA500\n4,swamp,#698339,2,grey,#BEBEBE\n5,fern,#63a950,1,green,#00FF00\n6,straw,#fcf679,9,yellow,#FFFF00\n7,leather,#ac7434,5,orange,#FFA500\n8,hazel,#8e7618,2,orange,#FFA500\n9,ice,#d6fffa,4,white,#FFFFFF\n"
df = pd.read_csv(csv)
df
@JonathanReeve
Copy link
Author

Binder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment