Skip to content

Commit 6abd5cc

Browse files
author
tp
committed
Updated according to comments
1 parent d566383 commit 6abd5cc

File tree

4 files changed

+7
-47
lines changed

4 files changed

+7
-47
lines changed

doc/source/basics.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ replace NaN with some other value using ``fillna`` if you wish).
251251
Flexible Comparisons
252252
~~~~~~~~~~~~~~~~~~~~
253253

254-
Note that Series and DataFrame have the binary comparison methods eq, ne, lt, gt,
255-
le, and ge whose behavior is analogous to the binary
254+
Series and DataFrame have the binary comparison methods ``eq``, ``ne``, ``lt``, ``gt``,
255+
``le``, and ``ge`` whose behavior is analogous to the binary
256256
arithmetic operations described above:
257257

258258
.. ipython:: python

doc/source/dsintro.rst

+3-5
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ DataFrame in tabular form, though it won't always fit the console width:
698698
699699
print(baseball.iloc[-20:, :12].to_string())
700700
701-
Note that wide DataFrames will be printed across multiple rows by
701+
Wide DataFrames will be printed across multiple rows by
702702
default:
703703

704704
.. ipython:: python
@@ -845,11 +845,9 @@ DataFrame objects with mixed-type columns, all of the data will get upcasted to
845845
846846
.. note::
847847

848-
Unfortunately Panel, being less commonly used than Series and DataFrame,
848+
Panel, being less commonly used than Series and DataFrame,
849849
has been slightly neglected feature-wise. A number of methods and options
850-
available in DataFrame are not available in Panel. This will get worked
851-
on, of course, in future releases. And faster if you join me in working on
852-
the codebase.
850+
available in DataFrame are not available in Panel.
853851

854852
.. _dsintro.to_panel:
855853

doc/source/groupby.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ columns:
140140

141141
In [5]: grouped = df.groupby(get_letter_type, axis=1)
142142

143-
Note that pandas Index objects support duplicate values. If a
143+
pandas Index objects support duplicate values. If a
144144
non-unique index is used as the group key in a groupby operation, all values
145145
for the same index value will be considered to be in one group and thus the
146146
output of aggregation functions will only contain unique index values:

doc/source/io.rst

+1-39
Original file line numberDiff line numberDiff line change
@@ -3878,7 +3878,7 @@ create a new table!)
38783878
Iterator
38793879
++++++++
38803880

3881-
Note that you can pass ``iterator=True`` or ``chunksize=number_in_a_chunk``
3881+
You can pass ``iterator=True`` or ``chunksize=number_in_a_chunk``
38823882
to ``select`` and ``select_as_multiple`` to return an iterator on the results.
38833883
The default is 50,000 rows returned in a chunk.
38843884

@@ -4419,44 +4419,6 @@ Now you can import the ``DataFrame`` into R:
44194419
starting point if you have stored multiple ``DataFrame`` objects to a
44204420
single HDF5 file.
44214421

4422-
Backwards Compatibility
4423-
'''''''''''''''''''''''
4424-
4425-
0.10.1 of ``HDFStore`` can read tables created in a prior version of pandas,
4426-
however query terms using the
4427-
prior (undocumented) methodology are unsupported. ``HDFStore`` will
4428-
issue a warning if you try to use a legacy-format file. You must
4429-
read in the entire file and write it out using the new format, using the
4430-
method ``copy`` to take advantage of the updates. The group attribute
4431-
``pandas_version`` contains the version information. ``copy`` takes a
4432-
number of options, please see the docstring.
4433-
4434-
4435-
.. ipython:: python
4436-
:suppress:
4437-
4438-
import os
4439-
legacy_file_path = os.path.abspath('source/_static/legacy_0.10.h5')
4440-
4441-
.. ipython:: python
4442-
:okwarning:
4443-
4444-
# a legacy store
4445-
legacy_store = pd.HDFStore(legacy_file_path,'r')
4446-
legacy_store
4447-
4448-
# copy (and return the new handle)
4449-
new_store = legacy_store.copy('store_new.h5')
4450-
new_store
4451-
new_store.close()
4452-
4453-
.. ipython:: python
4454-
:suppress:
4455-
4456-
legacy_store.close()
4457-
import os
4458-
os.remove('store_new.h5')
4459-
44604422

44614423
Performance
44624424
'''''''''''

0 commit comments

Comments
 (0)