title: Padding in a Pyspark Dataframe
body: <p>I have a Pyspark dataframe(<strong>Original Dataframe</strong>) having below data(all columns have <strong>string</strong> datatype):</p>
  
  <pre><code>  id           Value
     1             103
     2             1504
     3              1  
  </code></pre>
  
  <p>I need to create a new <strong>modified dataframe</strong> with <strong>padding</strong> in <strong>value</strong> column, so that length of this column should be <strong>4 characters</strong>. If length is less than 4 characters, then add 0's in data as shown below:</p>
  
  <pre><code>  id             Value
     1             0103
     2             1504
     3             0001  
  </code></pre>
  
  <p>Can someone help me out? How can i achieve it using Pyspark dataframe? Any help will be appreciated.</p>