title: pandas explode rows with all substring combinations
body: <p>I'm trying to find all combinations of a substring found in a single column, and then explode the dataframe with all possible combinations of each word.</p>
  <p><strong>Example Dataframe</strong></p>
  <pre><code>                     URL                Keyword
  0  http://www.amazon.com  Amazon Lightning Sale
  1   https://www.ebay.com        Shop eBay Today
  </code></pre>
  <p><strong>Desired Output</strong></p>
  <pre><code>                      URL                Keyword
  0   http://www.amazon.com  Amazon Lightning Sale
  1   http://www.amazon.com  Amazon Sale Lightning
  2   http://www.amazon.com  Lightning Amazon Sale
  3   http://www.amazon.com  Sale Amazon Lightning
  4   http://www.amazon.com  Sale Lightning Amazon
  5   http://www.amazon.com  Lightning Sale Amazon
  6    https://www.ebay.com        Shop eBay Today
  7    https://www.ebay.com        Shop Today eBay
  8    https://www.ebay.com        eBay Shop Today
  9    https://www.ebay.com        eBay Today Shop
  10   https://www.ebay.com        Today eBay Shop
  11   https://www.ebay.com        Today Shop eBay
  </code></pre>
  <p><strong>Minimum Reproducable Example</strong></p>
  <pre><code>import pandas as pd
  
  # initialize data of lists.
  data = {'URL': ['http://www.amazon.com', 'https://www.ebay.com'],
          'Keyword': [&quot;Amazon Lightning Sale&quot;, &quot;Shop eBay Today&quot;]}
  
  # Create DataFrame
  df = pd.DataFrame(data)
  
  # Print the output.
  print(df)
  </code></pre>
  <p>I've tried the solution here: <a href="https://stackoverflow.com/questions/69316456/pandas-dataframe-combinations-and-expand">Pandas DataFrame Combinations and expand</a> but it's not quite what I need.</p>