title: How to get all parent folders of a URL. Each into one line in pandas dataframe
body: <p>I want to split <code>dfPagesTotal['fullsection']</code> which is currently a string like &quot;<code>/sport/tennis/us-open</code>&quot; into 3 news rows with</p>
  <pre><code>&quot;/sport&quot;
  &quot;/sport/tennis&quot;
  &quot;/sport/tennis/us-open&quot;
  </code></pre>
  <p>I tested something like this but just splits (and copies of course correct) but does not keep the the parent paths:</p>
  <pre><code>dfPagesTotal = dfPagesTotal.assign(fullsection=dfPagesTotal['fullsection'].str.split('/')).explode('fullsection')
  </code></pre>
  <p>Thanks</p>