|
4 | 4 | "cell_type": "markdown",
|
5 | 5 | "metadata": {},
|
6 | 6 | "source": [
|
7 |
| - "# HTML Styling\n", |
| 7 | + "# Styling\n", |
8 | 8 | "\n",
|
9 | 9 | "*New in version 0.17.1*\n",
|
10 | 10 | "\n",
|
11 |
| - "<p style=\"color: red\">*Provisional: This is a new feature and still under development. We'll be adding features and possibly making breaking changes in future releases. We'd love to hear your feedback.*<p style=\"color: red\">\n", |
| 11 | + "<span style=\"color: red\">*Provisional: This is a new feature and still under development. We'll be adding features and possibly making breaking changes in future releases. We'd love to hear your feedback.*</span>\n", |
12 | 12 | "\n",
|
13 | 13 | "This document is written as a Jupyter Notebook, and can be viewed or downloaded [here](http://nbviewer.ipython.org/github/pandas-dev/pandas/blob/master/doc/source/html-styling.ipynb).\n",
|
14 | 14 | "\n",
|
|
233 | 233 | "source": [
|
234 | 234 | "Above we used `Styler.apply` to pass in each column one at a time.\n",
|
235 | 235 | "\n",
|
236 |
| - "<p style=\"background-color: #DEDEBE\">*Debugging Tip*: If you're having trouble writing your style function, try just passing it into <code style=\"background-color: #DEDEBE\">DataFrame.apply</code>. Internally, <code style=\"background-color: #DEDEBE\">Styler.apply</code> uses <code style=\"background-color: #DEDEBE\">DataFrame.apply</code> so the result should be the same.</p>\n", |
| 236 | + "<span style=\"background-color: #DEDEBE\">*Debugging Tip*: If you're having trouble writing your style function, try just passing it into <code style=\"background-color: #DEDEBE\">DataFrame.apply</code>. Internally, <code style=\"background-color: #DEDEBE\">Styler.apply</code> uses <code style=\"background-color: #DEDEBE\">DataFrame.apply</code> so the result should be the same.</span>\n", |
237 | 237 | "\n",
|
238 | 238 | "What if you wanted to highlight just the maximum value in the entire table?\n",
|
239 | 239 | "Use `.apply(function, axis=None)` to indicate that your function wants the entire table, not one column or row at a time. Let's try that next.\n",
|
|
847 | 847 | "cell_type": "markdown",
|
848 | 848 | "metadata": {},
|
849 | 849 | "source": [
|
850 |
| - "# Export to Excel\n", |
| 850 | + "## Export to Excel\n", |
851 | 851 | "\n",
|
852 | 852 | "*New in version 0.20.0*\n",
|
853 | 853 | "\n",
|
854 |
| - "<p style=\"color: red\">*Experimental: This is a new feature and still under development. We'll be adding features and possibly making breaking changes in future releases. We'd love to hear your [feedback](https://github.com/pandas-dev/pandas/issues).*<p style=\"color: red\">\n", |
| 854 | + "<span style=\"color: red\">*Experimental: This is a new feature and still under development. We'll be adding features and possibly making breaking changes in future releases. We'd love to hear your feedback.*</span>\n", |
855 | 855 | "\n",
|
856 | 856 | "Some support is available for exporting styled `DataFrames` to Excel worksheets using the `OpenPyXL` engine. CSS2.2 properties handled include:\n",
|
857 | 857 | "\n",
|
|
886 | 886 | "metadata": {},
|
887 | 887 | "source": [
|
888 | 888 | "A screenshot of the output:\n",
|
889 |
| - "<img alt=\"Excel spreadsheet with styled DataFrame\" src=\"_static/style-excel.png\">" |
| 889 | + "\n", |
| 890 | + "\n" |
890 | 891 | ]
|
891 | 892 | },
|
892 | 893 | {
|
|
0 commit comments