我尝试使用以下命令将csv文件导入mongodb:
mongoimport --type csv --headerline -d gender -c names file.csv
然而,它给了我以下错误:
Failed: fields cannot be identical: '0' and '0'
这是我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
没有字段' 0'没有相同的领域。我使用mongodb 3.0.7版。任何帮助表示赞赏。