title: Selecting Column from pandas Series
body: <p>I have a Series named 'graph' in pandas that looks like this:</p>
  
  <pre><code>Wavelength
  450      37
  455      31
  460       0
  465       0
  470       0
  475       0
  480     418
  485    1103
  490    1236
  495     894
  500     530
  505      85
  510       0
  515     168
  520       0
  525       0
  530     691
  535     842
  540    5263
  545    4738
  550    6237
  555    1712
  560     767
  565     620
  570       0
  575     757
  580    1324
  585    1792
  590     659
  595    1001
  600     601
  605     823
  610       0
  615     134
  620    3512
  625     266
  630     155
  635     743
  640     648
  645       0
  650     583
  Name: A1, dtype: object
  </code></pre>
  
  <p>I am graphing the curve using graph.plot(), which looks like this :
  <a href="https://i.stack.imgur.com/RKo1N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RKo1N.png" alt="enter image description here"></a></p>
  
  <p>The goal is to smooth the curve. I was trying to use the <a href="http://scipy.github.io/devdocs/generated/scipy.signal.savgol_filter.html#scipy.signal.savgol_filter" rel="nofollow noreferrer">Savgol_Filter</a>, but to do that I need to separate my series into x &amp; y columns. As of right now, I can acess the "Wavelength" column by using graph.index, but I can't grab the next column to assign it as y. </p>
  
  <p>I've tried using iloc and loc and haven't had any luck yet.</p>
  
  <p>Any tips or new directions to try?</p>