Skip to content

Instantly share code, notes, and snippets.

@cpard
Last active May 28, 2016 21:47
Show Gist options
  • Save cpard/87c4424072621fb2eb14a4d13c2c358b to your computer and use it in GitHub Desktop.
Save cpard/87c4424072621fb2eb14a4d13c2c358b to your computer and use it in GitHub Desktop.
Read the name data from US Census into Pandas DataFrames
fNames = padas.read_csv("./femalenames",
delim_whitespace=True, header=None,names=['name','freq','cFreq','rank'],na_values=["NaN"], keep_default_na=False)
mNames = padas.read_csv("./malenames",
delim_whitespace=True, header=None,names=['name','freq','cFreq','rank'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment