title: How to get a column value from each row from dataframe in Python
body: <p>all.</p>
  
  <p>I'd like to get 'ID' column value and print them for each row. Currently my code is returning row index + 'ID' column value.</p>
  
  <p>Here's an output:</p>
  
  <blockquote>
    <p>ID= 0    109 Name: id, dtype: int64 coordinate: [   75.<br>
    20.19276294  2903.        ] label: 1</p>
  </blockquote>
  
  <p>Here's my code:</p>
  
  <pre><code>for i in range(len(X)):
     print ("ID=", df['ID'].loc[[i]], "coordinate:" , X[i], "label:", labels[i])
  </code></pre>
  
  <p>If I print 'ID' column, stored values look like this: </p>
  
  <pre><code>print(df['ID'])
  
  0      109
  1      110
  2      111 
  </code></pre>
  
  <p>I only want 'ID' values to be printed out, here's what I expect.</p>
  
  <blockquote>
    <p>ID: 109  coordinate: [   75.     20.19276294  2903.        ] label: 1</p>
  </blockquote>