title: How to get the edges of a polygon as LineStrings?
body: <p>I have several square polygons in a list, how to get directly the list of all the LineStrings representing their four edges ? With a list comprehension using <code>polygon.exterior.coords</code> for example.</p>
  <pre class="lang-py prettyprint-override"><code>import geopandas as gpd
  frame = gpd.read_file(&quot;my_file.geojson&quot;)
  liste = frame[&quot;geometry&quot;].tolist()
  </code></pre>