forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: output formatting with to_html(), index=False and/or index_names…
…=False (pandas-dev#22579, pandas-dev#22747) (pandas-dev#22655)
- Loading branch information
1 parent
46eced8
commit f95258e
Showing
84 changed files
with
2,287 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
76 changes: 76 additions & 0 deletions
76
pandas/tests/io/formats/data/html/gh22579_expected_output.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<table border="1" class="dataframe"> | ||
<thead> | ||
<tr> | ||
<th colspan="2" halign="left">a</th> | ||
<th colspan="2" halign="left">b</th> | ||
</tr> | ||
<tr> | ||
<th>c</th> | ||
<th>d</th> | ||
<th>c</th> | ||
<th>d</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>0</td> | ||
<td>10</td> | ||
<td>10</td> | ||
<td>10</td> | ||
</tr> | ||
<tr> | ||
<td>1</td> | ||
<td>11</td> | ||
<td>11</td> | ||
<td>11</td> | ||
</tr> | ||
<tr> | ||
<td>2</td> | ||
<td>12</td> | ||
<td>12</td> | ||
<td>12</td> | ||
</tr> | ||
<tr> | ||
<td>3</td> | ||
<td>13</td> | ||
<td>13</td> | ||
<td>13</td> | ||
</tr> | ||
<tr> | ||
<td>4</td> | ||
<td>14</td> | ||
<td>14</td> | ||
<td>14</td> | ||
</tr> | ||
<tr> | ||
<td>5</td> | ||
<td>15</td> | ||
<td>15</td> | ||
<td>15</td> | ||
</tr> | ||
<tr> | ||
<td>6</td> | ||
<td>16</td> | ||
<td>16</td> | ||
<td>16</td> | ||
</tr> | ||
<tr> | ||
<td>7</td> | ||
<td>17</td> | ||
<td>17</td> | ||
<td>17</td> | ||
</tr> | ||
<tr> | ||
<td>8</td> | ||
<td>18</td> | ||
<td>18</td> | ||
<td>18</td> | ||
</tr> | ||
<tr> | ||
<td>9</td> | ||
<td>19</td> | ||
<td>19</td> | ||
<td>19</td> | ||
</tr> | ||
</tbody> | ||
</table> |
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
pandas/tests/io/formats/data/html/gh22783_named_columns_index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<table border="1" class="dataframe"> | ||
<thead> | ||
<tr style="text-align: right;"> | ||
<th>columns.name</th> | ||
<th>0</th> | ||
<th>1</th> | ||
<th>...</th> | ||
<th>3</th> | ||
<th>4</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<th></th> | ||
<td>1.764052</td> | ||
<td>0.400157</td> | ||
<td>...</td> | ||
<td>2.240893</td> | ||
<td>1.867558</td> | ||
</tr> | ||
<tr> | ||
<th></th> | ||
<td>-0.977278</td> | ||
<td>0.950088</td> | ||
<td>...</td> | ||
<td>-0.103219</td> | ||
<td>0.410599</td> | ||
</tr> | ||
</tbody> | ||
</table> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
34 changes: 34 additions & 0 deletions
34
pandas/tests/io/formats/data/html/index_named_multi_columns_named_multi.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<table border="1" class="dataframe"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th>columns.name.0</th> | ||
<th colspan="2" halign="left">a</th> | ||
</tr> | ||
<tr> | ||
<th></th> | ||
<th>columns.name.1</th> | ||
<th>b</th> | ||
<th>c</th> | ||
</tr> | ||
<tr> | ||
<th>index.name.0</th> | ||
<th>index.name.1</th> | ||
<th></th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<th rowspan="2" valign="top">a</th> | ||
<th>b</th> | ||
<td>0</td> | ||
<td>0</td> | ||
</tr> | ||
<tr> | ||
<th>c</th> | ||
<td>0</td> | ||
<td>0</td> | ||
</tr> | ||
</tbody> | ||
</table> |
29 changes: 29 additions & 0 deletions
29
pandas/tests/io/formats/data/html/index_named_multi_columns_named_standard.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<table border="1" class="dataframe"> | ||
<thead> | ||
<tr style="text-align: right;"> | ||
<th></th> | ||
<th>columns.name</th> | ||
<th>0</th> | ||
<th>1</th> | ||
</tr> | ||
<tr> | ||
<th>index.name.0</th> | ||
<th>index.name.1</th> | ||
<th></th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<th rowspan="2" valign="top">a</th> | ||
<th>b</th> | ||
<td>0</td> | ||
<td>0</td> | ||
</tr> | ||
<tr> | ||
<th>c</th> | ||
<td>0</td> | ||
<td>0</td> | ||
</tr> | ||
</tbody> | ||
</table> |
34 changes: 34 additions & 0 deletions
34
pandas/tests/io/formats/data/html/index_named_multi_columns_unnamed_multi.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<table border="1" class="dataframe"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th></th> | ||
<th colspan="2" halign="left">a</th> | ||
</tr> | ||
<tr> | ||
<th></th> | ||
<th></th> | ||
<th>b</th> | ||
<th>c</th> | ||
</tr> | ||
<tr> | ||
<th>index.name.0</th> | ||
<th>index.name.1</th> | ||
<th></th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<th rowspan="2" valign="top">a</th> | ||
<th>b</th> | ||
<td>0</td> | ||
<td>0</td> | ||
</tr> | ||
<tr> | ||
<th>c</th> | ||
<td>0</td> | ||
<td>0</td> | ||
</tr> | ||
</tbody> | ||
</table> |
Oops, something went wrong.