I want to split dfPagesTotal['fullsection'] which is currently a string like "/sport/tennis/us-open" into 3 news rows with
"/sport"
"/sport/tennis"
"/sport/tennis/us-open"
I tested something like this but just splits (and copies of course correct) but does not keep the the parent paths:
dfPagesTotal = dfPagesTotal.assign(fullsection=dfPagesTotal['fullsection'].str.split('/')).explode('fullsection')
Thanks