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
Copy file name to clipboardExpand all lines: doc/source/release.rst
+7-1
Original file line number
Diff line number
Diff line change
@@ -40,13 +40,19 @@ analysis / manipulation tool available in any language.
40
40
pandas 0.18.1
41
41
-------------
42
42
43
-
**Release date:** (April ??, 2016)
43
+
**Release date:** (May 3, 2016)
44
44
45
45
This is a minor release from 0.18.0 and includes a large number of bug fixes
46
46
along with several new features, enhancements, and performance improvements.
47
47
48
48
Highlights include:
49
49
50
+
- ``.groupby(...)`` has been enhanced to provide convenient syntax when working with ``.rolling(..)``, ``.expanding(..)`` and ``.resample(..)`` per group, see :ref:`here <whatsnew_0181.deferred_ops>`
51
+
- ``pd.to_datetime()`` has gained the ability to assemble dates from a ``DataFrame``, see :ref:`here <whatsnew_0181.enhancements.assembling>`
52
+
- Custom business hour offset, see :ref:`here <whatsnew_0181.enhancements.custombusinesshour>`.
53
+
- Many bug fixes in the handling of ``sparse``, see :ref:`here <whatsnew_0181.sparse>`
54
+
- Method chaining improvements, see :ref:`here <whatsnew_0181.enhancements.method_chain>`.
55
+
50
56
See the :ref:`v0.18.1 Whatsnew <whatsnew_0181>` overview for an extensive list
51
57
of all enhancements and bugs that have been fixed in 0.18.1.
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.18.1.txt
+28-17
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
.. _whatsnew_0181:
2
2
3
-
v0.18.1 (May ??, 2016)
4
-
----------------------
3
+
v0.18.1 (May 3, 2016)
4
+
---------------------
5
5
6
6
This is a minor bug-fix release from 0.18.0 and includes a large number of
7
7
bug fixes along with several new features, enhancements, and performance improvements.
@@ -190,9 +190,18 @@ Assembling Datetimes
190
190
'month': [2, 3],
191
191
'day': [4, 5],
192
192
'hour': [2, 3]})
193
+
df
194
+
195
+
Assembling using the passed frame.
196
+
197
+
.. ipython:: python
198
+
193
199
pd.to_datetime(df)
194
200
195
-
# pass only the columns that you need to assemble
201
+
You can pass only the columns that you need to assemble.
202
+
203
+
.. ipython:: python
204
+
196
205
pd.to_datetime(df[['year', 'month', 'day']])
197
206
198
207
.. _whatsnew_0181.other:
@@ -209,20 +218,22 @@ Other Enhancements
209
218
- ``interpolate()`` now supports ``method='akima'`` (:issue:`7588`).
210
219
- ``pd.read_excel()`` now accepts path objects (e.g. ``pathlib.Path``, ``py.path.local``) for the file path, in line with other ``read_*`` functions (:issue:`12655`)
211
220
- ``Index.take`` now handles ``allow_fill`` and ``fill_value`` consistently (:issue:`12631`)
212
-
- Added ``weekday_name`` as a component to ``DatetimeIndex`` and ``.dt`` accessor. (:issue:`11128`)
221
+
- Added ``.weekday_name`` property as a component to ``DatetimeIndex`` and the ``.dt`` accessor. (:issue:`11128`)
222
+
223
+
- ``Index.take`` now handles ``allow_fill`` and ``fill_value`` consistently (:issue:`12631`)
- ``Index`` now supports ``.str.get_dummies()`` which returns ``MultiIndex``, see :ref:`Creating Indicator Variables <text.indicator>` (:issue:`10008`, :issue:`10103`)
221
232
222
-
.. ipython:: python
233
+
.. ipython:: python
223
234
224
-
idx = pd.Index(['a|b', 'a|c', 'b|c'])
225
-
idx.str.get_dummies('|')
235
+
idx = pd.Index(['a|b', 'a|c', 'b|c'])
236
+
idx.str.get_dummies('|')
226
237
227
238
228
239
- ``pd.crosstab()`` has gained a ``normalize`` argument for normalizing frequency tables (:issue:`12569`). Examples in the updated docs :ref:`here <reshaping.crosstabulations>`.
@@ -236,7 +247,7 @@ Sparse changes
236
247
237
248
These changes conform sparse handling to return the correct types and work to make a smoother experience with indexing.
238
249
239
-
``SparseArray.take`` now returns scalar for scalar input, ``SparseArray`` for others. Also now it handles negative indexer as the same rule as ``Index`` (:issue:`10560`, :issue:`12796`)
250
+
``SparseArray.take`` now returns a scalar for scalar input, ``SparseArray`` for others. Furthermore, it handles a negative indexer with the same rule as ``Index`` (:issue:`10560`, :issue:`12796`)
240
251
241
252
.. ipython:: python
242
253
@@ -488,7 +499,7 @@ Deprecations
488
499
Performance Improvements
489
500
~~~~~~~~~~~~~~~~~~~~~~~~
490
501
491
-
- Improved speed of SAS reader (:issue:`12656`, :issue`12961`)
502
+
- Improved speed of SAS reader (:issue:`12656`, :issue:`12961`)
492
503
- Performance improvements in ``.groupby(..).cumcount()`` (:issue:`11039`)
493
504
- Improved memory usage in ``pd.read_csv()`` when using ``skiprows=an_integer`` (:issue:`13005`)
494
505
@@ -517,14 +528,14 @@ Bug Fixes
517
528
- Bug in printing data which contains ``Period`` with different ``freq`` raises ``ValueError`` (:issue:`12615`)
518
529
- Bug in numpy compatibility of ``np.round()`` on a ``Series`` (:issue:`12600`)
519
530
- Bug in ``Series`` construction with ``Categorical`` and ``dtype='category'`` is specified (:issue:`12574`)
520
-
- Bugs in concatenation with a coercable dtype was too aggressive. (:issue:`12411`, :issue:`12045`, :issue:`11594`, :issue:`10571`, :issue:`12211`)
531
+
- Bugs in concatenation with a coercable dtype was too aggressive, resulting in different dtypes in outputformatting when an object was longer than ``display.max_rows`` (:issue:`12411`, :issue:`12045`, :issue:`11594`, :issue:`10571`, :issue:`12211`)
521
532
- Bug in ``float_format`` option with option not being validated as a callable. (:issue:`12706`)
522
533
- Bug in ``GroupBy.filter`` when ``dropna=False`` and no groups fulfilled the criteria (:issue:`12768`)
523
534
- Bug in ``__name__`` of ``.cum*`` functions (:issue:`12021`)
524
535
- Bug in ``.astype()`` of a ``Float64Inde/Int64Index`` to an ``Int64Index`` (:issue:`12881`)
525
536
- Bug in roundtripping an integer based index in ``.to_json()/.read_json()`` when ``orient='index'`` (the default) (:issue:`12866`)
526
537
- Bug in plotting ``Categorical`` dtypes cause error when attempting stacked bar plot (:issue:`13019`)
527
-
- Compat with >= numpy 1.11 for NaT comparions (:issue:`12969`)
538
+
- Compat with >= ``numpy`` 1.11 for ``NaT`` comparions (:issue:`12969`)
528
539
- Bug in ``.drop()`` with a non-unique ``MultiIndex``. (:issue:`12701`)
529
540
- Bug in ``.concat`` of datetime tz-aware and naive DataFrames (:issue:`12467`)
530
541
- Bug in correctly raising a ``ValueError`` in ``.resample(..).fillna(..)`` when passing a non-string (:issue:`12952`)
@@ -533,7 +544,7 @@ Bug Fixes
533
544
- Potential segfault in ``DataFrame.to_json`` when serialising ``datetime.time`` (:issue:`11473`).
534
545
- Potential segfault in ``DataFrame.to_json`` when attempting to serialise 0d array (:issue:`11299`).
535
546
- Segfault in ``to_json`` when attempting to serialise a ``DataFrame`` or ``Series`` with non-ndarray values (:issue:`10778`).
536
-
- Bug in ``.align`` when sub-classing not returning the sub-class (:issue:`12983`)
547
+
- Bug in ``.align`` not returning the sub-class (:issue:`12983`)
537
548
- Bug in aligning a ``Series`` with a ``DataFrame`` (:issue:`13037`)
538
549
539
550
@@ -590,7 +601,7 @@ Bug Fixes
590
601
591
602
592
603
- Bug in ``concat`` raises ``AttributeError`` when input data contains tz-aware datetime and timedelta (:issue:`12620`)
593
-
- Bug in ``concat`` doesn't handle empty ``Series`` properly (:issue:`11082`)
604
+
- Bug in ``concat`` did not handle empty ``Series`` properly (:issue:`11082`)
594
605
595
606
- Bug in ``.plot.bar`` alginment when ``width`` is specified with ``int`` (:issue:`12979`)
0 commit comments