title: How can group multi data array to 1 array
body: <p><a href="https://i.stack.imgur.com/caBmo.png" rel="nofollow noreferrer">i have a list data</a></p>
  <p>i expected that:</p>
  <pre><code>[
      {
        &quot;country_code&quot;: &quot;US&quot;,
        &quot;data&quot;: [3,3,3,3]
      },
      {
        &quot;country_code&quot;: &quot;VN&quot;,
        &quot;data&quot;: [1,2,3,5]
      }
    ]
  </code></pre>
  <p>I tried loop for each array but result not is expect. Anyone help me. Thanks!!!!</p>