title: 'push' new number into an array of objects
body: <p>I have a long list of dates stored in a CSV file. I have managed to load this dataset successfully using d3.js. Now I want to add another column to this dataset containing a random number for each date in my list. </p>
  
  <p>I believe this dataset has been loaded as an array of objects. So I am using the code below to try and iterate through the array. I think the <code>push</code> method is the wrong way to do it, though, as this involves objects.</p>
  
  <pre><code>d3.csv('claims_cwy.csv', rowConverter, function(dataset) {
      console.log(dataset);
  
      for(var i=0; i&lt;10; i++) {           
          var newNumber = Math.round(Math.random() * 10);
          dataset[i].push(newNumber);
      }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/G8zmA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G8zmA.png" alt="my dataset"></a></p>