Skip to content

Commit 75718ec

Browse files
committed
DOC: minor doc corrections
1 parent c59cd67 commit 75718ec

File tree

3 files changed

+23
-15
lines changed

3 files changed

+23
-15
lines changed

doc/source/basics.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ See :ref:`gotchas<gotchas.truth>` for a more detailed discussion.
275275

276276
.. _basics.equals:
277277

278+
Comparing if objects are equivalent
279+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
280+
278281
Often you may find there is more than one way to compute the same
279282
result. As a simple example, consider ``df+df`` and ``df*2``. To test
280283
that these two computations produce the same result, given the tools
@@ -302,7 +305,6 @@ locations treated as equal.
302305
(df+df).equals(df*2)
303306
304307
305-
306308
Combining overlapping data sets
307309
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
308310

@@ -718,7 +720,9 @@ the z-score across the ``major_axis``.
718720

719721
.. ipython:: python
720722
721-
result = panel.apply(lambda x: (x-x.mean())/x.std(), axis='major_axis')
723+
result = panel.apply(
724+
lambda x: (x-x.mean())/x.std(),
725+
axis='major_axis')
722726
result
723727
result['ItemA']
724728
@@ -737,7 +741,8 @@ This is equivalent to the following
737741

738742
.. ipython:: python
739743
740-
result = Panel(dict([ (ax,f(panel.loc[:,:,ax])) for ax in panel.minor_axis ]))
744+
result = Panel(dict([ (ax,f(panel.loc[:,:,ax]))
745+
for ax in panel.minor_axis ]))
741746
result
742747
result.loc[:,:,'ItemA']
743748

doc/source/release.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pandas 0.13.1
5353
New features
5454
~~~~~~~~~~~~
5555

56-
- Added ``date_format`` and ``datetime_format`` attribute to ExcelWriter.
56+
- Added ``date_format`` and ``datetime_format`` attribute to ``ExcelWriter``.
5757
(:issue:`4133`)
5858

5959
API Changes
@@ -91,14 +91,14 @@ Improvements to existing features
9191
allow multiple axes to be used to operate on slabs of a ``Panel``
9292
- The ``ArrayFormatter`` for ``datetime`` and ``timedelta64`` now intelligently
9393
limit precision based on the values in the array (:issue:`3401`)
94-
- pd.show_versions() is now available for convenience when reporting issues.
94+
- ``pd.show_versions()`` is now available for convenience when reporting issues.
9595
- perf improvements to Series.str.extract (:issue:`5944`)
9696
- perf improvments in ``dtypes/ftypes`` methods (:issue:`5968`)
9797
- perf improvments in indexing with object dtypes (:issue:`5968`)
98-
- improved dtype inference for ``timedelta`` like passed to constructors (:issue:`5458`,:issue:`5689`)
98+
- improved dtype inference for ``timedelta`` like passed to constructors (:issue:`5458`, :issue:`5689`)
9999
- escape special characters when writing to latex (:issue: `5374`)
100100
- perf improvements in ``DataFrame.apply`` (:issue:`6013`)
101-
- pd.to_csv and pd.to_datetime learned a new ``infer_datetime_format`` keyword which greatly
101+
- ``pd.read_csv`` and ``pd.to_datetime`` learned a new ``infer_datetime_format`` keyword which greatly
102102
improves parsing perf in many cases. Thanks to @lexual for suggesting and @danbirken
103103
for rapidly implementing. (:issue:`5490`,:issue:`6021`)
104104
- add ability to recognize '%p' format code (am/pm) to date parsers when the specific format
@@ -134,7 +134,7 @@ Bug Fixes
134134
- ``pd.match`` not returning passed sentinel
135135
- ``Panel.to_frame()`` no longer fails when ``major_axis`` is a
136136
``MultiIndex`` (:issue:`5402`).
137-
- Bug in ``pd.read_msgpack`` with inferring a ``DateTimeIndex`` frequencey
137+
- Bug in ``pd.read_msgpack`` with inferring a ``DateTimeIndex`` frequency
138138
incorrectly (:issue:`5947`)
139139
- Fixed ``to_datetime`` for array with both Tz-aware datetimes and ``NaT``'s (:issue:`5961`)
140140
- Bug in rolling skew/kurtosis when passed a Series with bad data (:issue:`5749`)
@@ -169,8 +169,7 @@ Bug Fixes
169169
- Bug in DataFrame construction with recarray and non-ns datetime dtype (:issue:`6140`)
170170
- Bug in ``.loc`` setitem indexing with a datafrme on rhs, multiple item setting, and
171171
a datetimelike (:issue:`6152`)
172-
- Fixed a stack overflow bug in ``query``/``eval`` during lexicographic
173-
string comparisons (:issue:`6155`).
172+
- Fixed a bug in ``query``/``eval`` during lexicographic string comparisons (:issue:`6155`).
174173
- Fixed a bug in ``query`` where the index of a single-element ``Series`` was
175174
being thrown away (:issue:`6148`).
176175
- Bug in ``HDFStore`` on appending a dataframe with multi-indexed columns to

doc/source/v0.13.1.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ API changes
101101
Prior Version Deprecations/Changes
102102
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
103103

104-
These were announced changes in 0.13 or prior that are taking effect as of 0.13.1
104+
There are no announced changes in 0.13 or prior that are taking effect as of 0.13.1
105105

106106
Deprecations
107107
~~~~~~~~~~~~
@@ -111,7 +111,7 @@ There are no deprecations of prior behavior in 0.13.1
111111
Enhancements
112112
~~~~~~~~~~~~
113113

114-
- pd.to_csv and pd.to_datetime learned a new ``infer_datetime_format`` keyword which greatly
114+
- ``pd.read_csv`` and ``pd.to_datetime`` learned a new ``infer_datetime_format`` keyword which greatly
115115
improves parsing perf in many cases. Thanks to @lexual for suggesting and @danbirken
116116
for rapidly implementing. (:issue:`5490`, :issue:`6021`)
117117

@@ -160,7 +160,7 @@ Enhancements
160160
df['diff'] = df['today']-df['age']
161161
df
162162

163-
- Add ``show_dimensions`` display option for the new DataFrame repr:
163+
- Add ``show_dimensions`` display option for the new DataFrame repr to control whether the dimensions print.
164164

165165
.. ipython:: python
166166

@@ -202,7 +202,9 @@ Enhancements
202202

203203
.. ipython:: python
204204

205-
result = panel.apply(lambda x: (x-x.mean())/x.std(), axis='major_axis')
205+
result = panel.apply(
206+
lambda x: (x-x.mean())/x.std(),
207+
axis='major_axis')
206208
result
207209
result['ItemA']
208210

@@ -220,7 +222,8 @@ Enhancements
220222

221223
.. ipython:: python
222224

223-
result = Panel(dict([ (ax,f(panel.loc[:,:,ax])) for ax in panel.minor_axis ]))
225+
result = Panel(dict([ (ax,f(panel.loc[:,:,ax]))
226+
for ax in panel.minor_axis ]))
224227
result
225228
result.loc[:,:,'ItemA']
226229

@@ -237,6 +240,7 @@ Performance improvements for 0.13.1
237240
- indexing with object dtypes (:issue:`5968`)
238241
- ``DataFrame.apply`` (:issue:`6013`)
239242
- Regression in JSON IO (:issue:`5765`)
243+
- Index construction from Series (:issue:`6150`)
240244

241245
Experimental
242246
~~~~~~~~~~~~

0 commit comments

Comments
 (0)