Skip to content

Commit e66d25e

Browse files
committed
DOC: added release notes, docs for #288, #647
1 parent 1cae09c commit e66d25e

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

RELEASE.rst

+3
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ pandas 0.7.0
8080
in DataFrame (GH #628)
8181
- Add new ``Series.unique`` function, significantly faster than
8282
``numpy.unique`` (GH #658)
83+
- Add new ``cummin`` and ``cummax`` instance methods to ``Series`` and
84+
``DataFrame`` (GH #647)
85+
- Add new ``value_range`` function to return min/max of a dataframe (GH #288)
8386

8487
**API Changes**
8588

doc/source/basics.rst

+5
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ optional ``level`` parameter which applies only if the object has a
285285
``quantile``, Sample quantile (value at %)
286286
``cumsum``, Cumulative sum
287287
``cumprod``, Cumulative product
288+
``cummax``, Cumulative maximum
289+
``cummin``, Cumulative minimum
288290

289291
Note that by chance some NumPy methods, like ``mean``, ``std``, and ``sum``,
290292
will exclude NAs on Series input by default:
@@ -332,6 +334,9 @@ number of unique values and most frequently occurring values:
332334
s = Series(['a', 'a', 'b', 'b', 'a', 'a', np.nan, 'c', 'd', 'a'])
333335
s.describe()
334336
337+
There also is a utility function, ``value_range`` which takes a DataFrame and
338+
returns a series with the minimum/maximum values in the DataFrame.
339+
335340
.. _basics.idxmin:
336341

337342
Index of Min/Max Values

doc/source/whatsnew/v0.7.0.txt

+8
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ New features
8888
aggregate with groupby on a DataFrame, yielding an aggregated result with
8989
hierarchical columns (GH166_)
9090

91+
- Can call ``cummin`` and ``cummax`` on Series and DataFrame to get cumulative
92+
minimum and maximum, respectively (GH647_)
93+
94+
- ``value_range`` added as utility function to get min and max of a dataframe
95+
(GH288_)
96+
9197
API Changes to integer indexing
9298
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9399

@@ -266,6 +272,7 @@ similar operation to the above but using a Python function:
266272
.. _GH115: https://github.com/wesm/pandas/issues/115
267273
.. _GH166: https://github.com/wesm/pandas/issues/166
268274
.. _GH220: https://github.com/wesm/pandas/issues/220
275+
.. _GH288: https://github.com/wesm/pandas/issues/288
269276
.. _GH249: https://github.com/wesm/pandas/issues/249
270277
.. _GH267: https://github.com/wesm/pandas/issues/267
271278
.. _GH273: https://github.com/wesm/pandas/issues/273
@@ -288,6 +295,7 @@ similar operation to the above but using a Python function:
288295
.. _GH545: https://github.com/wesm/pandas/issues/545
289296
.. _GH554: https://github.com/wesm/pandas/issues/554
290297
.. _GH595: https://github.com/wesm/pandas/issues/595
298+
.. _GH647: https://github.com/wesm/pandas/issues/647
291299
.. _GH93: https://github.com/wesm/pandas/issues/93
292300
.. _GH93: https://github.com/wesm/pandas/issues/93
293301
.. _PR521: https://github.com/wesm/pandas/pull/521

pandas/tools/describe.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
from pandas.core.series import Series
22

33
def value_range(df):
4-
'''
4+
"""
55
Return the minimum and maximum of a dataframe in a series object
66
77
Parameters
88
----------
9-
df : dataframe
9+
df : DataFrame
1010
1111
Returns
1212
-------
1313
(maximum, minimum) : Series
1414
15-
'''
15+
"""
1616
return Series((min(df.min()), max(df.max())), ('Minimum', 'Maximum'))

0 commit comments

Comments
 (0)