Skip to content

DOC: remove warnings for .sort / .order deprecation removals #15808

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.13.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ API changes
df = DataFrame({'col':['foo', 0, np.nan]})
df2 = DataFrame({'col':[np.nan, 0, 'foo']}, index=[2,1,0])
df.equals(df2)
df.equals(df2.sort())
df.equals(df2.sort_index())

import pandas.core.common as com
com.array_equivalent(np.array([0, np.nan]), np.array([0, np.nan]))
Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.15.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ For full docs, see the :ref:`categorical introduction <categorical>` and the
# Reorder the categories and simultaneously add the missing categories
df["grade"] = df["grade"].cat.set_categories(["very bad", "bad", "medium", "good", "very good"])
df["grade"]
df.sort("grade")
df.sort_values("grade")
df.groupby("grade").size()

- ``pandas.core.group_agg`` and ``pandas.core.factor_agg`` were removed. As an alternative, construct
Expand Down
5 changes: 5 additions & 0 deletions doc/source/whatsnew/v0.20.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ New features

The ``dtype`` keyword argument in the :func:`read_csv` function for specifying the types of parsed columns is now supported with the ``'python'`` engine (:issue:`14295`). See the :ref:`io docs <io.dtypes>` for more information.

.. ipython:: python
:suppress:

from pandas.compat import StringIO

.. ipython:: python

data = "a,b\n1,2\n3,4"
Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.7.3.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ Series, to be more consistent with the ``groupby`` behavior with DataFrame:
df
grouped = df.groupby('A')['C']
grouped.describe()
grouped.apply(lambda x: x.order()[-2:]) # top 2 values
grouped.apply(lambda x: x.sort_values()[-2:]) # top 2 values
15 changes: 11 additions & 4 deletions doc/source/whatsnew/v0.9.1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,20 @@ New features
- `Series.sort`, `DataFrame.sort`, and `DataFrame.sort_index` can now be
specified in a per-column manner to support multiple sort orders (:issue:`928`)

.. ipython:: python
:okwarning:
.. code-block:: ipython

df = DataFrame(np.random.randint(0, 2, (6, 3)), columns=['A', 'B', 'C'])
In [2]: df = DataFrame(np.random.randint(0, 2, (6, 3)), columns=['A', 'B', 'C'])

df.sort(['A', 'B'], ascending=[1, 0])
In [3]: df.sort(['A', 'B'], ascending=[1, 0])

Out[3]:
A B C
3 0 1 1
4 0 1 1
2 0 0 1
0 1 0 0
1 1 0 0
5 1 0 0

- `DataFrame.rank` now supports additional argument values for the
`na_option` parameter so missing values can be assigned either the largest
Expand Down