title: Replace Nested Dictionary values
body: <ol>
  <li>I have created a nested dictionary from my sample dataframe :</li>
  </ol>
  <pre class="lang-py prettyprint-override"><code>dict_1 = {
      &quot;AR&quot;: {
          &quot;tom&quot;: {&quot;q&quot;: 1.0},
          &quot;jerry&quot;: {&quot;q&quot;: 1.0},
          &quot;spike&quot;: {&quot;q&quot;: 1.0}
      },
      &quot;DB&quot;: {
          &quot;goku&quot;: {&quot;q&quot;: 1.0},
          &quot;vegeta&quot;: {&quot;q&quot;: 2.0},
          &quot;gohan&quot;: {&quot;q&quot;: 1.0},
          &quot;trunks&quot;: {&quot;q&quot;: 1.0},
      },
  }
  </code></pre>
  <ol start="2">
  <li>I have another dictionary:</li>
  </ol>
  <pre class="lang-py prettyprint-override"><code>dict_2 = {
      &quot;AR&quot;: {
          &quot;tom&quot;: {&quot;q&quot;: 1.0}
      },
      &quot;DB&quot;: {
          &quot;goku&quot;: {&quot;q&quot;: 1.0}
      },
  }
  </code></pre>
  <ol start="3">
  <li>Now I want to check the dictionary 1 and want to replace the same values of the dict_1 which is in dict_2.
  The <strong>output</strong> should be :</li>
  </ol>
  <pre class="lang-py prettyprint-override"><code>dict_3 = dict_2 + {
      &quot;AR&quot;: {&quot;jerry&quot;: {&quot;q&quot;: 1.0}, &quot;spike&quot;: {&quot;q&quot;: 1.0}},
      &quot;DB&quot;: {&quot;vegeta&quot;: {&quot;q&quot;: 2.0}, &quot;gohan&quot;: {&quot;q&quot;: 1.0}, &quot;trunks&quot;: {&quot;q&quot;: 1.0}},
  }
  </code></pre>