title: AttributeError: 'DataFrame' object has no attribute 'dtype'
body: <p>I enountered </p>
  
  <blockquote>
    <p>Error in py_get_attr_impl(x, name, silent) :    AttributeError:
    'DataFrame' object has no attribute 'dtype'</p>
  </blockquote>
  
  <p>on calling python code in R using reticulate package in R.</p>
  
  <p>The code in python runs correctly. I am not sure from where this error is coming. I am using pvlib python library to call some in build databases.</p>
  
  <p>My code is for R is:</p>
  
  <pre><code>library('reticulate')
  pd &lt;- import('pandas')
  pvlib &lt;- import('pvlib')
  np &lt;- import('numpy') 
  sandia_modules = pvlib$pvsystem$retrieve_sam('SandiaMod')
  cec_inverters = pvlib$pvsystem$retrieve_sam("CECInverter")
  </code></pre>
  
  <p>I have issue with <code>cec_inverters = pvlib$pvsystem$retrieve_sam("CECInverter")</code> when I the code in python it's working but running same commands in R is giving me error. I am not sure what the issue is. Please help me resolve this issue.</p>
  
  <p>The similar code in python is:</p>
  
  <pre><code>import pandas as pd
  import numpy as np
  import pvlib
  
  sandia_modules = pvlib.pvsystem.retrieve_sam('SandiaMod')
  cec_inverters = pvlib.pvsystem.retrieve_sam('cecinverter')
  </code></pre>
  
  <p>I tried looking for solution but so far didn't find anything useful.</p>
  
  <p>Here's the traceback:</p>
  
  <pre><code>10: stop(list(message = "AttributeError: 'DataFrame' object has no attribute 'dtype'", 
          call = py_get_attr_impl(x, name, silent), cppstack = list(
              file = "", line = -1L, stack = "C++ stack not available on this system")))
  9: .Call(`_reticulate_py_get_attr_impl`, x, name, silent)
  8: py_get_attr_impl(x, name, silent)
  7: py_get_attr(x, name)
  6: `$.python.builtin.object`(x[[column]], "dtype")
  5: x[[column]]$dtype
  4: py_to_r(x[[column]]$dtype$name)
  3: py_to_r.pandas.core.frame.DataFrame(result)
  2: py_to_r(result)
  1: pvlib$pvsystem$retrieve_sam("CECInverter")
  </code></pre>