title: Python arcpy panToExtent inside of cursor causes Polygon object attribute error
body: <p>Using python 2.7</p>
  <p>I have a polygon feature class with multiple rows that I am iterating through with an update cursor. I am creating custom dataframes based on each row (works) but when I try to get each polygon to zoom to the extent of the custom dataframe I keep getting attribute errors. I have also seen many posts using similar functions on SO within cursors so I think it should work, but I cannot get past this error.</p>
  <p>I have tried using syntax I got directly from esri page and got an
  Attribute error: 'List' object has no attribute 'panToExtent'. (This makes sense since I think the cursor is making a list object).</p>
  <p>Then I tried making it a polygon object and now get Attribute error: Polygon obj has no attr 'panToExtent'.</p>
  <p>Could this be due to the update cursor? Do I have to convert this somehow?</p>
  <pre><code>def get_info():
  with arcpy.da.UpdateCursor(testdata,&quot;SHAPE@&quot;) as cursor:
      for row in cursor:
  
          df = arcpy.mapping.ListDataFrames(mxd)[0]
          df.rotation = 0
          df.scale = 63360
  
          df.elementWidth = curr_width + 10
          df.elementHeight = curr_height + 10
  
          df_w = df.elementWidth
          df_h = df.elementHeight
          print(df_w, df_h)#YES
          arcpy.RefreshActiveView()
          cursor.updateRow(row)
  
          newdf = df
  
          newdf.extent = newdf.panToExtent(row.getSelectedExtent())#List obj has no attr panToExtent
  
          newdf.extent = newdf.panToExtent(row[0].getSelectedExtent())#Polygon obj has no attr panToExtent
  </code></pre>