PySpark: add a new field to a data frame Row element
<p>I have the following element:</p>
<pre><code>a = Row(ts=1465326926253, myid=u'1234567', mytype=u'good') 
</code></pre>
<p>The Row is of Spark data frame Row class. I want to append a new field to <code>a</code>, so that <code>a</code> would look like:</p>
<pre><code>a = Row(ts=1465326926253, myid=u'1234567', mytype=u'good', name = u'john') 
</code></pre>