title: create individual class variables of all column items in a data frame
body: <p>I have a data set which looks like this:</p>
  <pre><code>   ID   data    name
      0   225.3   player0
      1   185.0   player1
      2   291.0   player2
      3   231.8   player3
      4   337.8   player4
  </code></pre>
  <p>the column 'name' contains unique values.</p>
  <p>I want to create an individual class variable for each data point in column &quot;name&quot; using the following class code:</p>
  <pre><code>class personName:
      def __init__(self, name, data):
          self.name = name
          self.data= data
  </code></pre>
  <p>There are 1000 plus unique values in the column &quot;name&quot; and i want all those values to have their own class variable, and the name of the class variable is the name in the column &quot;name&quot;.</p>
  <p>For example:</p>
  <pre><code>player0=personName('player0',225.3)
  </code></pre>
  <p>How do I automate to create data for all player names, as I did for 'player0'? Kindly help.</p>