merge the database query result based on date
<p>I have a database query result like this:</p>

<pre><code>date        sum                              avg                            dist
2016-01-01  Decimal('11.0909090909090909')  Decimal('3.7272727272727273')   58.53545455
2016-05-01  Decimal('11.6666666666666667')  Decimal('4.0000000000000000')   74.87666667
</code></pre>

<p>How can I get the result as following:</p>

<pre><code>date        sum                             avg                             dist
2016-01-01  Decimal('11.0909090909090909')  Decimal('3.7272727272727273')   58.53545455
2016-02-01  0                               0                               0
2016-03-01  0                               0                               0
2016-04-01  0                               0                               0
2016-05-01  Decimal('11.6666666666666667')  Decimal('4.0000000000000000')   74.87666667
2016-06-01  0                               0                               0
2016-07-01  0                               0                               0
2016-08-01  0                               0                               0
2016-09-01  0                               0                               0
2016-10-01  0                               0                               0
2016-11-01  0                               0                               0
2016-12-01  0                               0                               0
</code></pre>

<p>Thank you.</p>