def read_names(names_path):
 names_data = pd.read_csv(names_path)
 names_data.Name = names_data.Name.str.lower()
 name_data = names_data.groupby(by=['Name'])['Count'].sum()
 name_counts = np.array(name_data.tolist())
 names_deduped = np.array(name_data.index.tolist())
 Dataset = collections.namedtuple('Dataset', ['Name', 'Count'])
 return Dataset(names_deduped, name_counts)

def read_names ( names_path ) : names_data = pd . read_csv ( names_path ) names_data . Name = names_data . Name . str . lower ( ) name_data = names_data . groupby ( by = [ 'Name' ] ) [ 'Count' ] . sum ( ) name_counts = np . array ( name_data . tolist ( ) ) names_deduped = np . array ( name_data . index . tolist ( ) ) Dataset = collections . namedtuple ( 'Dataset' , [ 'Name' , 'Count' ] ) return Dataset ( names_deduped , name_counts )
read data from downloaded file .