File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ See the section :ref:`Selection by Position <indexing.integer>` for substitutes.
105105.. _indexing.xs :
106106
107107Cross-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)
You can’t perform that action at this time.
0 commit comments