Files
kiss-vscode/tasks/importers/census2000.rake
Nat Quayle Nelson 2af495d056 Squashed 'projects/bad-nlp/name-database/' content from commit 46d2e01a
git-subtree-dir: projects/bad-nlp/name-database
git-subtree-split: 46d2e01a4953b8f54e8625c9111cf5b372d80b49
2023-03-20 18:03:18 -06:00

20 lines
473 B
Ruby

desc "imports the census 2000 data files and merged the data with the existing data files"
task "import:census2000" => "import:census2000:run"
namespace "import:census2000" do
task :run => :db do
open("sources/census-2000/app_c.csv", 'r') do |file|
file.gets #skip the header
file.each do |line|
fields = line.split(",")
name = fields.first
@db.family_names.get name
end
end
@db.write
end
end