title: I can’t load all documents from csv file using python
body: <p>i'm trying to load csv file to Elasticsearch using python</p>
  <pre><code>from elasticsearch import Elasticsearch, helpers
  import csv
  
  # Elastic search configuation
  
  es = Elasticsearch('http://IP:8081')
  
  # Creating index
  es.indices.create(index=&quot;suivipsi&quot;)
  
  # Looking if the index exists
  #es.indices.exists(index=&quot;firstindex&quot;)
  
  # Open csv file and bulk upload
    with open('Suivi_des_PSI_2.csv',encoding='utf-8') as f:
      reader = csv.DictReader(f)
      helpers.bulk(es, reader, index='suivipsi')
  </code></pre>
  <p>my csv file hase 8763 line bunt when index is created in elasticsearch it gives that only 334 lignes are loaded to index
  as shown below
  <a href="https://i.stack.imgur.com/2UxsF.png" rel="nofollow noreferrer">enter image description here</a></p>