title: Pandas Python probelm
body: <pre><code>import pandas as pd
  nba = pd.read_csv(&quot;nba.csv&quot;)
  names = pd.Series(nba['Name'])
  data = nba['Salary']
  nba_series = (data, index=[names])
  print(nba_series)
  </code></pre>
  <p>Hello I am trying to convert the columns 'Name' and 'Salary' into a series from a dataframe. I need to set the names as the index and the salaries as the values but i cannot figure it out. this is my best attempt so far anyone guidance is appreciated</p>