title: Apply a transformation to all the columns with the same data type on Spark
body: <p>I need to apply a transformation to all the Integer columns of my Data Frame before writting a CSV. The transformation consists on changing the type to String and then transform the format to the European one (E.g. 1234567 -&gt; &quot;1234567&quot; -&gt; &quot;1.234.567&quot;).</p>
  <p>Has Spark any way to apply this transformation to all the Integer Columns? I want it to be a generic functionality (because I need to write multiple CSVs) instead of hardcoding all the columns to transform for each dataframe.</p>