Cartesian product of only one column in Pyspark?
<p>As specified in the question i want to do the cartesian with just of one column of rdd. Example:</p>

<pre><code>rdd1:
id1  A
id2  B
id3  C
</code></pre>

<p>My output should be:</p>

<pre><code>id1 A A
id1 A B
id1 A C
id2 B A
id2 B B
id2 B C
id3 C A
id3 C B
id3 C C
</code></pre>