从 pandas 导入 table HTML html 正文

Importing table HTML from pandas on html body

我有pandas df,导出到html 结果是..

<table border="1" class="dataframe">
<thead>
  <tr style="text-align: right;">
    <th>Flop</th>
    <th>BET 1610 Freq</th>
    <th>BET 1218 Freq</th>
    <th>BET 575 Freq</th>
    <th>CHECK Freq</th>
  </tr>
</thead>
<tbody>
  <tr>
    <td>2s 2d 2c</td>
    <td>2.90</td>
    <td>11.91</td>
    <td>36.90</td>
    <td>48.30</td>
  </tr>
  ...5k lines...

我正在尝试导入 html 普通文件并在后面创建一个过滤器 请问有什么方法可以做到吗? 可以用 JS 吗?

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="style.css" />
  </head>
  <body>
    <button class="go">Search</button>
    <link rel="import" href="3BP-OOP-PFR.html" />
  </body>
</html>

HTML

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="style.css" />
  </head>
  <body>
    <button class="go">Search</button>
     <?php
        import "3BP-OOP-PER.php"; // import "3BP-OOP-PER.html";
     ?>
    <link rel="import" href="3BP-OOP-PFR.html" />
  </body>
</html>

两个文件另存为.php

使用这个