title: Python - Is it possible to round and replace an array at the same time?
body: <p>How can I round and replace an array at the same time?
  My code line:</p>
  <pre><code>plt.text(*max_p_tranformed[:-1][0]+1, *max_p_tranformed[:-1][1], (str(np.round(deflp1[idx]),2).replace(' [', '').replace('[', '').replace(']', '')))
  </code></pre>
  <p>And the return is: str() argument 2 must be str, not int</p>
  <p>Any suggestion to overcome this?</p>