Skip to content

DOC: Change user guide style notebook to reST #40644

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions doc/source/user_guide/style.ipynb
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"cell_type": "raw",
"metadata": {
"raw_mimetype": "text/restructuredtext"
},
"source": [
"# Styling\n",
"Styling\n",
"=======\n",
"\n",
"This document is written as a Jupyter Notebook, and can be viewed or downloaded [here](https://nbviewer.ipython.org/github/pandas-dev/pandas/blob/master/doc/source/user_guide/style.ipynb).\n",
"\n",
"You can apply **conditional formatting**, the visual styling of a DataFrame\n",
"depending on the data within, by using the ``DataFrame.style`` property.\n",
"This is a property that returns a ``Styler`` object, which has\n",
"depending on the data within, by using the :attr:`pandas.DataFrame.style` property.\n",
"This is a property that returns a :class:`~pandas.io.formats.style.Styler` object, which has\n",
"useful methods for formatting and displaying DataFrames.\n",
"\n",
"The styling is accomplished using CSS.\n",
"You write \"style functions\" that take scalars, `DataFrame`s or `Series`, and return *like-indexed* DataFrames or Series with CSS `\"attribute: value\"` pairs for the values.\n",
"These functions can be incrementally passed to the `Styler` which collects the styles before rendering.\n",
"You write \"style functions\" that take scalars, :attr:`~pandas.DataFrame`\\ s or :attr:`~pandas.Series`, and return *like-indexed* DataFrames or Series with CSS `\"attribute: value\"` pairs for the values.\n",
"These functions can be incrementally passed to the :class:`~pandas.io.formats.style.Styler` which collects the styles before rendering.\n",
"\n",
"CSS is a flexible language and as such there may be multiple ways of achieving the same result, with potential\n",
"advantages or disadvantages, which we try to illustrate."
Expand Down Expand Up @@ -1421,6 +1424,7 @@
}
],
"metadata": {
"celltoolbar": "Raw Cell Format",
"kernelspec": {
"display_name": "Python 3",
"language": "python",
Expand All @@ -1436,7 +1440,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.6"
"version": "3.7.4"
}
},
"nbformat": 4,
Expand Down