title: PySpark How to parse and get field names from Dataframe schema's StructType Object
body: <p>I have created Dataframe from Hive Table and want to retrieve the field/Column names. </p>
  
  <pre><code>&gt;&gt;&gt;a=df.schema
  &gt;&gt;&gt;a
  StructType(List(StructField(empid, IntegerType, true), StructField(empname,StringType, true)))
  </code></pre>
  
  <p>How can I retrieve Field names (empid, empname) from this object.</p>