title: Adding Attributes to Nodes from Dataframe in a Network
body: <p>I asked this question before but after a comment I want to change it:</p>
  
  <pre><code>import networkx as nx
  </code></pre>
  
  <p><strong>What I Have:</strong> a graph G imported in networkx from dataframe using by <em>nx.from_pandas_dataframe()</em></p>
  
  <p><strong>Problem :</strong> When I used <code>nx.from_pandas_dataframe(dataframe, 'Sources', 'Target', edge_attr=True)</code> nx thinks all other colums rather then <em>Sources</em> and <em>Target</em> are attributes to edges. </p>
  
  <p><strong>What I want to do:</strong> I want to use some columns of dataframe as attributes of nodes.</p>
  
  <p><strong>My Question :</strong> Is there any easy way to do this(like <code>edge_attr=True</code> add many attributes with only one function)? If not How can I add many attributes to nodes from a dataframe?
  For example:</p>
  
  <pre><code>Airline Sources Target  SLongitudeLatitude  TLongitudeLatitude  SPopulation NPopulation
  Alpha   A           Z              1               10              101             111
  Delta   B           Y              2               11              102             112
  Gamma   C           X              3               12              103             113
  Omega   D           W              4               13              104             114
  Lambda  E           U              5               14              105             115
  Zeta    F           T              6               15              106             116
  Beta    G           S              7               16              107             117
  Phi     H           R              8               17              108             118
  </code></pre>
  
  <p>Airline Column is attribute to edges but rest of columns (SLongitudeLatitude, TLongitudeLatitude and Population) are attribute for nodes.</p>
  
  <p>Or can I add attributes to nodes from different dataframe?</p>