Skip to content

Commit cc15110

Browse files
committed
DOC: make shared include for the boilerplate text in comparison docs
1 parent 3cde26c commit cc15110

File tree

5 files changed

+13
-39
lines changed

5 files changed

+13
-39
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
If you're new to pandas, you might want to first read through :ref:`10 Minutes to pandas<10min>`
2+
to familiarize yourself with the library.
3+
4+
As is customary, we import pandas and NumPy as follows:
5+
6+
.. ipython:: python
7+
8+
import pandas as pd
9+
import numpy as np

doc/source/getting_started/comparison/comparison_with_excel.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,7 @@ Calc <https://help.libreoffice.org/latest/en-US/text/scalc/main0000.html?DbPAR=C
1313
Numbers <https://www.apple.com/mac/numbers/compatibility/functions.html>`_, and other
1414
Excel-compatible spreadsheet software.
1515

16-
If you're new to pandas, you might want to first read through :ref:`10 Minutes to pandas<10min>`
17-
to familiarize yourself with the library.
18-
19-
As is customary, we import pandas and NumPy as follows:
20-
21-
.. ipython:: python
22-
23-
import pandas as pd
24-
import numpy as np
16+
.. include:: comparison_boilerplate.rst
2517

2618
Commonly used Excel functionalities
2719
-----------------------------------

doc/source/getting_started/comparison/comparison_with_sas.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,7 @@ For potential users coming from `SAS <https://en.wikipedia.org/wiki/SAS_(softwar
88
this page is meant to demonstrate how different SAS operations would be
99
performed in pandas.
1010

11-
If you're new to pandas, you might want to first read through :ref:`10 Minutes to pandas<10min>`
12-
to familiarize yourself with the library.
13-
14-
As is customary, we import pandas and NumPy as follows:
15-
16-
.. ipython:: python
17-
18-
import pandas as pd
19-
import numpy as np
20-
11+
.. include:: comparison_boilerplate.rst
2112

2213
.. note::
2314

doc/source/getting_started/comparison/comparison_with_sql.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,7 @@ Since many potential pandas users have some familiarity with
88
`SQL <https://en.wikipedia.org/wiki/SQL>`_, this page is meant to provide some examples of how
99
various SQL operations would be performed using pandas.
1010

11-
If you're new to pandas, you might want to first read through :ref:`10 Minutes to pandas<10min>`
12-
to familiarize yourself with the library.
13-
14-
As is customary, we import pandas and NumPy as follows:
15-
16-
.. ipython:: python
17-
18-
import pandas as pd
19-
import numpy as np
11+
.. include:: comparison_boilerplate.rst
2012

2113
Most of the examples will utilize the ``tips`` dataset found within pandas tests. We'll read
2214
the data into a DataFrame called ``tips`` and assume we have a database table of the same name and

doc/source/getting_started/comparison/comparison_with_stata.rst

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,7 @@ For potential users coming from `Stata <https://en.wikipedia.org/wiki/Stata>`__
88
this page is meant to demonstrate how different Stata operations would be
99
performed in pandas.
1010

11-
If you're new to pandas, you might want to first read through :ref:`10 Minutes to pandas<10min>`
12-
to familiarize yourself with the library.
13-
14-
As is customary, we import pandas and NumPy as follows. This means that we can refer to the
15-
libraries as ``pd`` and ``np``, respectively, for the rest of the document.
16-
17-
.. ipython:: python
18-
19-
import pandas as pd
20-
import numpy as np
21-
11+
.. include:: comparison_boilerplate.rst
2212

2313
.. note::
2414

0 commit comments

Comments
 (0)