title: How can I create dynamic column names in Pandas?
body: <p>I have a list of numerical columns <code>[NumColumns]</code> and I want to Bin all of them but I also want to keep the original value in the data frame as well so I don't want the values simply replaced. How can I do that?</p>
  <p>I tried this(which works to replace) -</p>
  <pre><code>data[NumColumns] = pd.cut(data[NumColumns], bins=[0,30,70,100], labels=[&quot;Low&quot;, &quot;Mid&quot;, &quot;High&quot;])
  </code></pre>
  <p>Instead of replacing, I'm hoping it would add '_bin' to the end so I would end up with something like value_bin, revenue_bin, age_bin, etc..</p>
  <p>I'm not sure how to do this as I have to declare this on the left-hand side. I'm wondering if there is a common way?</p>