Skip to content

Commit b7c3271

Browse files
Merge pull request #9988 from jorisvandenbossche/doc-apiref
DOC: provide more links to API documentation where possible (GH3705)
2 parents 4b58538 + 6f65c29 commit b7c3271

File tree

2 files changed

+119
-110
lines changed

2 files changed

+119
-110
lines changed

doc/source/10min.rst

+14-11
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,22 @@ Object Creation
4545

4646
See the :ref:`Data Structure Intro section <dsintro>`
4747

48-
Creating a ``Series`` by passing a list of values, letting pandas create a default
49-
integer index
48+
Creating a :class:`Series` by passing a list of values, letting pandas create
49+
a default integer index:
5050

5151
.. ipython:: python
5252
5353
s = pd.Series([1,3,5,np.nan,6,8])
5454
s
5555
56-
Creating a ``DataFrame`` by passing a numpy array, with a datetime index and labeled columns.
56+
Creating a :class:`DataFrame` by passing a numpy array, with a datetime index
57+
and labeled columns:
5758

5859
.. ipython:: python
5960
60-
dates = pd.date_range('20130101',periods=6)
61+
dates = pd.date_range('20130101', periods=6)
6162
dates
62-
df = pd.DataFrame(np.random.randn(6,4),index=dates,columns=list('ABCD'))
63+
df = pd.DataFrame(np.random.randn(6,4), index=dates, columns=list('ABCD'))
6364
df
6465
6566
Creating a ``DataFrame`` by passing a dict of objects that can be converted to series-like.
@@ -128,7 +129,7 @@ See the top & bottom rows of the frame
128129
df.head()
129130
df.tail(3)
130131
131-
Display the index,columns, and the underlying numpy data
132+
Display the index, columns, and the underlying numpy data
132133

133134
.. ipython:: python
134135
@@ -462,7 +463,7 @@ operations.
462463

463464
See the :ref:`Merging section <merging>`
464465

465-
Concatenating pandas objects together
466+
Concatenating pandas objects together with :func:`concat`:
466467

467468
.. ipython:: python
468469
@@ -555,16 +556,17 @@ Stack
555556
df2 = df[:4]
556557
df2
557558
558-
The ``stack`` function "compresses" a level in the DataFrame's columns.
559+
The :meth:`~DataFrame.stack` method "compresses" a level in the DataFrame's
560+
columns.
559561

560562
.. ipython:: python
561563
562564
stacked = df2.stack()
563565
stacked
564566
565567
With a "stacked" DataFrame or Series (having a ``MultiIndex`` as the
566-
``index``), the inverse operation of ``stack`` is ``unstack``, which by default
567-
unstacks the **last level**:
568+
``index``), the inverse operation of :meth:`~DataFrame.stack` is
569+
:meth:`~DataFrame.unstack`, which by default unstacks the **last level**:
568570

569571
.. ipython:: python
570572
@@ -708,7 +710,8 @@ Plotting
708710
@savefig series_plot_basic.png
709711
ts.plot()
710712
711-
On DataFrame, ``plot`` is a convenience to plot all of the columns with labels:
713+
On DataFrame, :meth:`~DataFrame.plot` is a convenience to plot all of the
714+
columns with labels:
712715

713716
.. ipython:: python
714717

0 commit comments

Comments
 (0)