title: Use GeoDataFrame as a osgeo.ogr DataSource
body: <p>I have read shapefile into a <code>GeoDataFrame</code> and did some modification to it: </p>
  
  <pre><code>import geopandas as gpd
  
  # Read shapefile into geodataframe
  geodf = gpd.read_file("shapefile.shp")
  
  # Do some "pandas-like" modifications to shapefile
  geodf = modify_geodf(geodf)
  </code></pre>
  
  <p>However, I would also like to apply some functionality of <code>osgeo.ogr</code> module on it:</p>
  
  <pre><code>from osgeo import ogr
  
  # Read shapefile into ogr DataSource
  ds=ogr.Open("shapefile.shp")
  
  # Do some "gdal/ogr-like" modifications to shapefile
  ds = modify_ds(ds)
  </code></pre>
  
  <p><strong>QUESTION:</strong> Is there any way to use or convert an already in-memory shapefile, currently in a form of a GeoDataFrame, as an <code>osgeo.ogr.DataSource</code> directly?</p>
  
  <p>The way I do it so far is to save GeoDataFrame to file with <code>to_file()</code> and then <code>osgeo.ogr.Open()</code> it again, but this seems kind of redundant to me.</p>