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>`
452
452
df
453
453
s = df.iloc[3 ]
454
454
df.append(s, ignore_index = True )
455
- df
456
455
457
456
458
457
Grouping
@@ -508,7 +507,7 @@ Stack
508
507
df2 = df[:4 ]
509
508
df2
510
509
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.
512
511
513
512
.. ipython :: python
514
513
@@ -661,19 +660,17 @@ Writing to a HDF5 Store
661
660
662
661
.. ipython :: python
663
662
664
- store = pd.HDFStore(' foo.h5' )
665
- store[' df' ] = df
663
+ df.to_hdf(' foo.h5' ,' df' )
666
664
667
665
Reading from a HDF5 Store
668
666
669
667
.. ipython :: python
670
668
671
- store[ ' df' ]
669
+ read_hdf( ' foo.h5 ' , ' df' )
672
670
673
671
.. ipython :: python
674
672
:suppress:
675
673
676
- store.close()
677
674
os.remove(' foo.h5' )
678
675
679
676
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.
105
105
.. _indexing.xs :
106
106
107
107
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.
109
109
110
110
- ``xs `` (for DataFrame),
111
111
- ``minor_xs `` and ``major_xs `` (for Panel)
You can’t perform that action at this time.
0 commit comments