Skip to content

Commit c85af37

Browse files
committed
DOC: have software names appear in includes through substitution
1 parent 3526a71 commit c85af37

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

doc/source/getting_started/comparison/comparison_with_sas.rst

+2
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,8 @@ For example, in SAS you could do this to filter missing values.
461461
462462
.. include:: includes/missing.rst
463463

464+
.. |program| replace:: SAS
465+
464466

465467
GroupBy
466468
-------

doc/source/getting_started/comparison/comparison_with_stata.rst

+2
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,8 @@ For example, in Stata you could do this to filter missing values.
448448
449449
.. include:: includes/missing.rst
450450

451+
.. |program| replace:: Stata
452+
451453

452454
GroupBy
453455
-------

doc/source/getting_started/comparison/includes/missing.rst

+4-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ should be used for comparisons.
66
outer_join[pd.isna(outer_join["value_x"])]
77
outer_join[pd.notna(outer_join["value_x"])]
88
9-
pandas also provides a variety of methods to work with missing data -- some of
10-
which would be challenging to express in Stata. For example, there are methods to
11-
drop all rows with any missing values, replacing missing values with a specified
12-
value, like the mean, or forward filling from previous rows. See the
13-
:ref:`missing data documentation<missing_data>` for more.
9+
pandas also provides a variety of methods to work with missing data -- some of which would be
10+
challenging to express in |program|. For example, there are methods to drop all rows with any
11+
missing values, replacing missing values with a specified value, like the mean, or forward filling
12+
from previous rows. See the :ref:`missing data documentation<missing_data>` for more.
1413

1514
.. ipython:: python
1615

doc/source/getting_started/comparison/includes/missing_intro.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Both have a representation for missing data — pandas' is the special float value ``NaN`` (not a
2-
number). Many of the semantics are the same; for example missing data propagates through numeric
3-
operations, and is ignored by default for aggregations.
1+
Both pandas and |program| have a representation for missing data — pandas' is the special float
2+
value ``NaN`` (not a number). Many of the semantics are the same; for example missing data
3+
propagates through numeric operations, and is ignored by default for aggregations.
44

55
.. ipython:: python
66

0 commit comments

Comments
 (0)