How to get data from R to pandas
<p>In a jupiter notebook I created some 2-d-list in R like</p>

<pre><code>%%R
first &lt;- "first"
second &lt;- "second"

names(first) &lt;- "first_thing"
names(second) &lt;- "second_thing"

x &lt;- list()
index &lt;- length(x)+1
x[[index]] = first
x[[index +1]] = second
</code></pre>

<p>a <code>%Rpull x</code> does not return the nice representation but rather a <code>ListVector</code>. How can I convert it into something nicer e.g. a dict / pd.Dataframe? So far I had no luck following <a href="http://pandas.pydata.org/pandas-docs/stable/r_interface.html" rel="nofollow">http://pandas.pydata.org/pandas-docs/stable/r_interface.html</a>
<a href="http://i.stack.imgur.com/2PBFh.jpg" rel="nofollow"><img src="http://i.stack.imgur.com/2PBFh.jpg" alt="pull from R"></a></p>

<h1>edit</h1>

<p>The list I want to convert is a 2-d list like <code>results</code> the updated code snipped from above</p>

<p>Just slice the <code>ListVector</code>:</p>

<pre><code>%Rpull x
pd.DataFrame(data=[i[0] for i in x], columns=['X'])
</code></pre>

<p><a href="http://i.stack.imgur.com/qNYVx.png" rel="nofollow"><img src="http://i.stack.imgur.com/qNYVx.png" alt="Image"></a></p>

<p>If you want a dictionary instead:</p>

<pre><code>dict([[i,j[0]] for i,j in enumerate(x)])
{0: 'first', 1: 'first'}
</code></pre>

python pandas rpy2