title: Julia: Converting PyObject to an Array
body: <p>In Julia, I am calling a Python module pandas_datareader to download data from the web: </p>
  
  <pre><code>using PyCall
  @pyimport datetime
  @pyimport pandas_datareader.data as web
  gdp = web.DataReader("GDPCA","fred",start=datetime.datetime(1929,1,1))
  </code></pre>
  
  <p>The variable gdp is a PyObject object. As such, I cannot manipulate it (take logs for example). How do I convert it to an array? I tried convert(Array{Float64,2},gdp), but it only crashes Julia.</p>
  
  <p>Thanks!</p>