title: Error using networkx weighted edgelist
body: <p>I have created a weighted edge list that I am trying to use to generate a weighted undirected graph:</p>
  
  <p>The data is in a csv which looks like the following in excel:</p>
  
  <pre><code>node1 node2 weight
  
  a     b     0.1
  
  a     c     0.3
  </code></pre>
  
  <p>As recommended by other StackOverflow posts, I have been using the following code to read in the csv:</p>
  
  <pre><code>fh=open("&lt;file_location&gt;.csv", 'r')
  G = nx.read_weighted_edgelist(fh,delimiter=',')
  </code></pre>
  
  <p>The first line runs fine but the second yields the error message:</p>
  
  <pre><code>TypeError: Failed to convert weight data weight to type type 'float'
  </code></pre>
  
  <p>If I check G, it has read in the nodes fine but not the weights, any ideas?</p>