title: PySpark - Format String using Column Values
body: <p>I'm trying to create a new column that creates a string using 4 columns.</p>
  <pre><code>df.withColumn(&quot;input&quot;,
                      F.lit(&quot;http://address.com/process?field1={}&amp;field2={}&amp;field3={}&amp;field4={}&quot;.format(F.col('field1'),F.col('field2'),F.col('field3'),F.col('field4'))).show()
  </code></pre>
  <p>However, where I'm trying to insert the column values into the string, it's showing up as <code>field1=Column&lt;'field1'&gt;</code> instead of the actual value. I tried wraping it in <code>F.format_string</code> as well but I'm not getting the actual values.</p>
  <p>So what it should be returning is something like this, assuming that each column has a <code>string = VALUE</code>.</p>
  <pre><code>http://address.com/process?field1=VALUE&amp;field2=VALUE&amp;field3=VALUE&amp;field4=VALUE
  </code></pre>