title: python code for creating class object from dataframe rows
body: <p>I have one data frame with row entries and column names. I also have a class defined with attributes (class attribute names are different from dataframe columns).</p>
  
  <p>Now the requirement is to create objects of that class per record from the dataframe and the final list of objects should be output</p>
  
  <p>Class A:</p>
  
  <pre><code>AA, AB, AC....etc
  </code></pre>
  
  <p>dataframe:</p>
  
  <pre><code>A B c ...
  1 2 3 ...
  1 2 3 ...
  </code></pre>
  
  <p>How to avoid column names and start creating objects? </p>
  
  <p>I have tried using this code:</p>
  
  <pre><code>Aobjs = [A(**kwargs) for kwargs in dataframe.to_dict(orient='records')]
  </code></pre>