title: How to convert eli5.show_weights to an array/list in python
body: <p>I am have trained model and everything works fine. And I am calculating the permutation importance of each feature weight. I am using the <code>eli5.show_weights()</code>  but it show the output as an <code>html</code>, but I need it to convert to some kind of a list or an array so I can access the values.</p>
  <p>here's my code sample, excluding the <code>estimator's</code> code part to make it simple:</p>
  <pre><code>import eli5
  from eli5.sklearn import PermutationImportance
  
  perm = PermutationImportance(estimator, random_state=1).fit(X_testdf, y_testdf)
  eli5.show_weights(perm, feature_names = X_testdf.columns.tolist())
  </code></pre>
  <p>This works fine, but I need to get the values output by <code>eli5.show_weights(..)</code> to an array or any variable so I can access these values.</p>
  <p>I also tried, but no luck</p>
  <pre><code>np.array(eli5.show_weights(perm, feature_names=X.columns.tolist()))
  </code></pre>
  <p><strong>Can someone please help me?</strong></p>