title: How to format a number from thousands to K style in plotly
body: <p>I want to change the format of y-axis from thousands to thousands in K format in plotly python. This is part of the data.</p>
  <pre><code>df = pd.DataFrame({&quot;country&quot;:[&quot;USA&quot;,&quot;Germany&quot;,&quot;France&quot;,&quot;Norway&quot;,&quot;Italy&quot;],
                     &quot;GDP&quot;:[654351.55,592802.56,363693.83,180218.17,223992.0],
                    &quot;Date&quot;:['2018-02-28','2018-03-28','2018-01-28','2018-06-28','2018-07-28']})
  </code></pre>
  <p><a href="https://i.stack.imgur.com/l2k9R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l2k9R.png" alt="enter image description here" /></a></p>