title: Add Nodes with attributes from a .txt file with multiple delimiters networkx/pandas
body: <p>I have a <code>.txt</code> File that has 46 lines, each line stands for a node in a network and then has LOTS of attributes behind it.</p>
  
  <pre><code>Example Name; 03.01.194, Luzern, (LU), Test, Attribute, Other Attribute, 
  Kasdasd Alex; 22.12.1957, in Blabla, (ZH), Bürgerorte, Oeschgen (AG),  Zivilstand, 
  </code></pre>
  
  <p>I'm not sure how I get networkx to see this as a nodelist, some things I thought about, that maybe could work, but do not at the moment</p>
  
  <pre><code>import pandas as pd
  import networkx as nx
  nodes = pd.read_csv('final.csv', header=None)
  nodes
  </code></pre>
  
  <p>Problem with the code above is that the attributes are separated by commas, but not the nodes.</p>
  
  <p>Another try, where I wanted to open the file, and add nodes line by line but got stuck on the  <code>G.add_node()</code> command</p>
  
  <pre><code>G = nx.Graph()
  with open('final.txt') as infile:
      for line in infile:
          G.add_node()
  </code></pre>
  
  <p>Is one of the two the approach to go for or should I try something different?</p>
  
  <p>Also for further analysis, does networkx offer a possibilty to compare attributes of nodes and if they match, create a weighted edge? </p>