title: Convert Julia Dataframe to Python Pandas data frame
body: <p>I am trying to convert a PyCall.jlwrap ('Julia') object to a Pandas dataframe. I'm using PyJulia to run an optimization algorithm in Julia, which spits out a dataframe object as a result.  I would like to convert that object to a Pandas dataframe.</p>
  <p>This is a similar question as posed 5 years ago <a href="https://stackoverflow.com/questions/23322025/julia-dataframes-vs-python-pandas">here</a>. However, there is not any code to suggest how to accomplish the transfer.</p>
  <p>Any help would be useful!</p>
  <p>Here is the code I currently have set-up. It's not that useful to know what is happening in the background of my 'optimization_program' but just to know that what is returned by the 'run_hybrid' and 'run_storage' commands returns a data frame:</p>
  <pre class="lang-py prettyprint-override"><code>### load in necessary modules for pyjulia    
  from julia import Main as jl 
  
  ##load my user defined module
  jl.include(&quot;optimization_program_v3.jl&quot;)
  
  ##run function from module
  results = jl.run_hybrid(generic_inputs)
  
  ##test type of item returned
  jl.typeof(results)
  returns: &lt;PyCall.jlwrap DataFrame&gt;
  
  ##try to convert to pandas
  test = pd.DataFrame(results)
  </code></pre>
  <blockquote>
  <p>Value Error  Traceback (most recent call last)</p>
  <p> in ()</p>
  <p>----&gt; 1 test = pd.DataFrame(results)</p>
  <p>in <strong>init</strong>(self, data, index, columns, dtype, copy)</p>
  <p>420                 dtype=values.dtype, copy=False)
  421             else:
  422                 raise ValueError('DataFrame constructor not properly called!')</p>
  <p>423</p>
  <p>424         NDFrame.<strong>init</strong>(self, mgr, fastpath=True)</p>
  <p>ValueError: DataFrame constructor not properly called!</p>
  </blockquote>