title: How to convert torch tensor to pandas dataframe?
body: <p>I'd like to convert a torch tensor to pandas dataframe but by using <code>pd.DataFrame</code> I'm getting a dataframe filled with tensors instead of numeric values.</p>
  
  <pre class="lang-py prettyprint-override"><code>import torch
  import pandas as  pd
  x = torch.rand(4,4)
  px = pd.DataFrame(x)
  </code></pre>
  
  <p>Here's what I get when clicking on <code>px</code> in the variable explorer:</p>
  
  <pre><code>0   1   2   3
  tensor(0.3880)  tensor(0.4598)  tensor(0.4239)  tensor(0.7376)
  tensor(0.4174)  tensor(0.9581)  tensor(0.0987)  tensor(0.6359)
  tensor(0.6199)  tensor(0.8235)  tensor(0.9947)  tensor(0.9679)
  tensor(0.7164)  tensor(0.9270)  tensor(0.7853)  tensor(0.6921)
  </code></pre>