You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API: make Series.sort/order arguments in the same order
drop unused Series.sort order argument
added Series.sort na_position argument to conform with Series.order
Series.order default kind is not 'quicksort' to conform with Series.sort
(and others), (GH6847)
Copy file name to clipboardExpand all lines: doc/source/release.rst
+7-13
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ API Changes
83
83
for a Series with a ``DatetimeIndex`` or a ``PeriodIndex``; trying this on a non-supported Index type will
84
84
now raise a ``TypeError``. (:issue:`4551`, :issue:`4056`, :issue:`5519`)
85
85
86
-
The following affected:
86
+
The following are affected:
87
87
88
88
- ``date,time,year,month,day``
89
89
- ``hour,minute,second,weekofyear``
@@ -132,26 +132,20 @@ API Changes
132
132
the name of the inserted column containing the pivoted data.
133
133
134
134
- Allow specification of a more complex groupby, via ``pd.Grouper`` (:issue:`3794`)
135
-
136
135
- A tuple passed to ``DataFame.sort_index`` will be interpreted as the levels of
137
136
the index, rather than requiring a list of tuple (:issue:`4370`)
138
-
139
137
- Fix a bug where invalid eval/query operations would blow the stack (:issue:`5198`)
140
-
141
138
- Following keywords are now acceptable for :meth:`DataFrame.plot` with ``kind='bar'`` and ``kind='barh'``:
142
139
143
140
- `width`: Specify the bar width. In previous versions, static value 0.5 was passed to matplotlib and it cannot be overwritten. (:issue:`6604`)
144
-
145
-
- `align`: Specify the bar alignment. Default is `center` (different from matplotlib). In previous versions, pandas passes `align='edge'` to matplotlib and adjust the location to `center` by itself, and it results `align` keyword is not applied as expected. (:issue:`4525`)
146
-
141
+
- `align`: Specify the bar alignment. Default is `center` (different from matplotlib). In previous versions, pandas passes `align='edge'` to
142
+
matplotlib and adjust the location to `center` by itself, and it results `align` keyword is not applied as expected. (:issue:`4525`)
147
143
- `position`: Specify relative alignments for bar plot layout. From 0 (left/bottom-end) to 1 (right/top-end). Default is 0.5 (center). (:issue:`6604`)
148
144
149
145
- Define and document the order of column vs index names in query/eval (:issue:`6676`)
150
-
151
146
- ``DataFrame.sort`` now places NaNs at the beginning or end of the sort according to the ``na_position`` parameter. (:issue:`3917`)
152
147
- ``stack`` and ``unstack`` now raise a ``ValueError`` when the ``level`` keyword refers
153
148
to a non-unique item in the ``Index`` (previously raised a ``KeyError``). (:issue:`6738`)
154
-
155
149
- all offset operations now return ``Timestamp`` types (rather than datetime), Business/Week frequencies were incorrect (:issue:`4069`)
156
150
- ``Series.iteritems()`` is now lazy (returns an iterator rather than a list). This was the documented behavior prior to 0.14. (:issue:`6760`)
157
151
- ``Panel.shift`` now uses ``NDFrame.shift``. It no longer drops the ``nan`` data and retains its original shape. (:issue:`4867`)
@@ -160,19 +154,19 @@ API Changes
160
154
representation) (:issue:`6782`)
161
155
- Arithmetic ops are now disallowed when passed two bool dtype Series or
162
156
DataFrames (:issue:`6762`).
163
-
164
157
- Added ``nunique`` and ``value_counts`` functions to ``Index`` for counting unique elements. (:issue:`6734`)
165
158
166
159
- ``DataFrame.plot`` and ``Series.plot`` now support a ``table`` keyword for plotting ``matplotlib.Table``. The ``table`` kewyword can receive the following values.
167
160
168
161
- ``False``: Do nothing (default).
169
-
170
162
- ``True``: Draw a table using the ``DataFrame`` or ``Series`` called ``plot`` method. Data will be transposed to meet matplotlib's default layout.
171
-
172
163
- ``DataFrame`` or ``Series``: Draw matplotlib.table using the passed data. The data will be drawn as displayed in print method (not transposed automatically).
173
-
174
164
Also, helper function ``pandas.tools.plotting.table`` is added to create a table from ``DataFrame`` and ``Series``, and add it to an ``matplotlib.Axes``.
175
165
166
+
- drop unused order argument from ``Series.sort``; args now in the same orders as ``Series.order``;
167
+
add ``na_position`` arg to conform to ``Series.order`` (:issue:`6847`)
168
+
- default sorting algorithm for ``Series.order`` is not ``quicksort``, to conform with ``Series.sort``
Copy file name to clipboardExpand all lines: doc/source/v0.14.0.txt
+5-15
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ API changes
65
65
for a Series with a ``DatetimeIndex`` or a ``PeriodIndex``; trying this on a non-supported Index type will
66
66
now raise a ``TypeError``. (:issue:`4551`, :issue:`4056`, :issue:`5519`)
67
67
68
-
The following affected:
68
+
The following are affected:
69
69
70
70
- ``date,time,year,month,day``
71
71
- ``hour,minute,second,weekofyear``
@@ -208,6 +208,10 @@ API changes
208
208
- Added ``nunique`` and ``value_counts`` functions to ``Index`` for counting unique elements. (:issue:`6734`)
209
209
- ``stack`` and ``unstack`` now raise a ``ValueError`` when the ``level`` keyword refers
210
210
to a non-unique item in the ``Index`` (previously raised a ``KeyError``).
211
+
- drop unused order argument from ``Series.sort``; args now in the same orders as ``Series.order``;
212
+
add ``na_position`` arg to conform to ``Series.order`` (:issue:`6847`)
213
+
- default sorting algorithm for ``Series.order`` is not ``quicksort``, to conform with ``Series.sort``
214
+
(and numpy defaults)
211
215
212
216
.. _whatsnew_0140.sql:
213
217
@@ -329,20 +333,15 @@ Plotting
329
333
~~~~~~~~
330
334
331
335
- Hexagonal bin plots from ``DataFrame.plot`` with ``kind='hexbin'`` (:issue:`5478`), See :ref:`the docs<visualization.hexbin>`.
332
-
333
336
- Plotting with Error Bars is now supported in the ``.plot`` method of ``DataFrame`` and ``Series`` objects (:issue:`3796`), See :ref:`the docs<visualization.errorbars>`.
334
-
335
337
- ``DataFrame.plot`` and ``Series.plot`` now support a ``table`` keyword for plotting ``matplotlib.Table``, See :ref:`the docs<visualization.table>`.
336
-
337
338
- ``plot(legend='reverse')`` will now reverse the order of legend labels for
338
339
most plot kinds. (:issue:`6014`)
339
340
340
341
- Following keywords are now acceptable for :meth:`DataFrame.plot(kind='bar')` and :meth:`DataFrame.plot(kind='barh')`.
341
342
342
343
- `width`: Specify the bar width. In previous versions, static value 0.5 was passed to matplotlib and it cannot be overwritten. (:issue:`6604`)
343
-
344
344
- `align`: Specify the bar alignment. Default is `center` (different from matplotlib). In previous versions, pandas passes `align='edge'` to matplotlib and adjust the location to `center` by itself, and it results `align` keyword is not applied as expected. (:issue:`4525`)
345
-
346
345
- `position`: Specify relative alignments for bar plot layout. From 0 (left/bottom-end) to 1(right/top-end). Default is 0.5 (center). (:issue:`6604`)
347
346
348
347
Because of the default `align` value changes, coordinates of bar plots are now located on integer values (0.0, 1.0, 2.0 ...). This is intended to make bar plot be located on the same coodinates as line plot. However, bar plot may differs unexpectedly when you manually adjust the bar location or drawing area, such as using `set_xlim`, `set_ylim`, etc. In this cases, please modify your script to meet with new coordinates.
@@ -355,28 +354,19 @@ Prior Version Deprecations/Changes
355
354
There are prior version deprecations that are taking effect as of 0.14.0.
356
355
357
356
- Remove :class:`DateRange` in favor of :class:`DatetimeIndex` (:issue:`6816`)
358
-
359
357
- Remove ``column`` keyword from ``DataFrame.sort`` (:issue:`4370`)
360
-
361
358
- Remove ``precision`` keyword from :func:`set_eng_float_format` (:issue:`395`)
362
-
363
359
- Remove ``force_unicode`` keyword from :meth:`DataFrame.to_string`,
364
360
:meth:`DataFrame.to_latex`, and :meth:`DataFrame.to_html`; these function
365
361
encode in unicode by default (:issue:`2224`, :issue:`2225`)
366
-
367
362
- Remove ``nanRep`` keyword from :meth:`DataFrame.to_csv` and
368
363
:meth:`DataFrame.to_string` (:issue:`275`)
369
-
370
364
- Remove ``unique`` keyword from :meth:`HDFStore.select_column` (:issue:`3256`)
371
-
372
365
- Remove ``inferTimeRule`` keyword from :func:`Timestamp.offset` (:issue:`391`)
373
-
374
366
- Remove ``name`` keyword from :func:`get_data_yahoo` and
0 commit comments