title: Insert values of dataframe to class atributes with for loop in python
body: <p>I have parsed data in dataframes by using Pandas. I need to insert the data into class that I created.</p>
  <p>My class:</p>
  <pre><code>class Message:
  time = None
  id = None
  type = None
  source = None
  destination = None
      def __init__(self, time, id, type, source, destination):
      self.time = time
      self.id = id
      self.type = type
      self.source = source
      self.destination = destination
  </code></pre>
  <p>I'm going through the dataframes and trying to insert the output into the attributes of the class as following:</p>
  <pre><code>newMessage=Message()
  for index, row in df.iterrows():
      newMessage.__init__(row['time'], row['id'], row['type'], row['source'], row['destination'])
      print(row['time'], row['ID'], row['TYPE'], row['Source'], row['Destination'])
  </code></pre>
  <p>The exception it throws:</p>
  <pre><code>TypeError: __init__() missing 7 required positional arguments
  </code></pre>
  <p>I don't know how to call the class and the arguments, please help.</p>