Skip to content

Commit b5c6e1c

Browse files
committed
DOC: minor changes in 10min.rst
1 parent 2d0a840 commit b5c6e1c

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

doc/source/10min.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ Append rows to a dataframe. See the :ref:`Appending <merging.concatenation>`
452452
df
453453
s = df.iloc[3]
454454
df.append(s, ignore_index=True)
455-
df
456455
457456
458457
Grouping
@@ -508,7 +507,7 @@ Stack
508507
df2 = df[:4]
509508
df2
510509
511-
The ``stack`` function "compresses" a level in the DataFrame's columns. to
510+
The ``stack`` function "compresses" a level in the DataFrame's columns.
512511

513512
.. ipython:: python
514513
@@ -661,19 +660,17 @@ Writing to a HDF5 Store
661660

662661
.. ipython:: python
663662
664-
store = pd.HDFStore('foo.h5')
665-
store['df'] = df
663+
df.to_hdf('foo.h5','df')
666664
667665
Reading from a HDF5 Store
668666

669667
.. ipython:: python
670668
671-
store['df']
669+
read_hdf('foo.h5','df')
672670
673671
.. ipython:: python
674672
:suppress:
675673
676-
store.close()
677674
os.remove('foo.h5')
678675
679676
Excel

doc/source/indexing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ See the section :ref:`Selection by Position <indexing.integer>` for substitutes.
105105
.. _indexing.xs:
106106

107107
Cross-sectional slices on non-hierarchical indices are now easily performed using
108-
``.loc`` and/or ``.loc``. These methods now exist primarily for backward compatibility.
108+
``.loc`` and/or ``.iloc``. These methods now exist primarily for backward compatibility.
109109

110110
- ``xs`` (for DataFrame),
111111
- ``minor_xs`` and ``major_xs`` (for Panel)

0 commit comments

Comments
 (0)