I'm trying to import a csv file to mongodb using the following command:
mongoimport --type csv --headerline -d gender -c names file.csv
However, it is giving me the following error:
Failed: fields cannot be identical: '0' and '0'
These are the first few lines of my file.csv
name,years_appearing,count_male,count_female,prob_gender,obs_male,est_male,upper,lower
Aaban,5,42,0,Male,1,1,1.016100647,0.900100562
Aabha,2,0,12,Female,0,0,1.039491315,0.718014678
Aabid,1,5,0,Male,1,1,1.054572395,0.51094514
There's no field '0' and no identical field. I'm using mongodb version 3.0.7. Any help is appreciated.