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/whatsnew/v0.17.0.txt
+30-28
Original file line number
Diff line number
Diff line change
@@ -85,19 +85,19 @@ Support strftime for Datetimelikes
85
85
86
86
We are now supporting a ``Series.dt.strftime`` method for datetime-likes to generate a formatted string (:issue:`10110`). Examples:
87
87
88
-
.. ipython:: python
88
+
.. ipython:: python
89
89
90
-
# DatetimeIndex
91
-
s = pd.Series(pd.date_range('20130101', periods=4))
92
-
s
93
-
s.dt.strftime('%Y/%m/%d')
90
+
# DatetimeIndex
91
+
s = pd.Series(pd.date_range('20130101', periods=4))
92
+
s
93
+
s.dt.strftime('%Y/%m/%d')
94
94
95
-
.. ipython:: python
95
+
.. ipython:: python
96
96
97
-
# PeriodIndex
98
-
s = pd.Series(pd.period_range('20130101', periods=4))
99
-
s
100
-
s.dt.strftime('%Y/%m/%d')
97
+
# PeriodIndex
98
+
s = pd.Series(pd.period_range('20130101', periods=4))
99
+
s
100
+
s.dt.strftime('%Y/%m/%d')
101
101
102
102
The string format is as the python standard library and details can be found `here <https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior>`_
103
103
@@ -186,19 +186,18 @@ Other enhancements
186
186
187
187
- ``read_sql_table`` will now allow reading from views (:issue:`10750`).
188
188
189
-
- ``drop_duplicates`` and ``duplicated`` now accept ``keep`` keyword to target first, last, and all duplicates. ``take_last`` keyword is deprecated, see :ref:`deprecations <whatsnew_0170.deprecations>` (:issue:`6511`, :issue:`8505`)
190
-
191
189
- ``msgpack`` submodule has been updated to 0.4.6 with backward compatibility (:issue:`10581`)
192
190
193
191
- ``DataFrame.to_dict`` now accepts the *index* option in ``orient`` keyword argument (:issue:`10844`).
194
192
195
-
.. ipython :: python
193
+
- ``drop_duplicates`` and ``duplicated`` now accept ``keep`` keyword to target first, last, and all duplicates. ``take_last`` keyword is deprecated, see :ref:`deprecations <whatsnew_0170.deprecations>` (:issue:`6511`, :issue:`8505`)
196
194
197
-
s = pd.Series(['A', 'B', 'C', 'A', 'B', 'D'])
198
-
s.drop_duplicates()
199
-
s.drop_duplicates(keep='last')
200
-
s.drop_duplicates(keep=False)
195
+
.. ipython :: python
201
196
197
+
s = pd.Series(['A', 'B', 'C', 'A', 'B', 'D'])
198
+
s.drop_duplicates()
199
+
s.drop_duplicates(keep='last')
200
+
s.drop_duplicates(keep=False)
202
201
203
202
- Reindex now has a ``tolerance`` argument that allows for finer control of :ref:`basics.limits_on_reindex_fill`:
204
203
@@ -331,13 +330,13 @@ Changes to convert_objects
331
330
332
331
``DataFrame.convert_objects`` keyword arguments have been shortened. (:issue:`10265`)
333
332
334
-
===================== =============
335
-
Old New
336
-
===================== =============
337
-
``convert_dates`` ``datetime``
338
-
``convert_numeric`` ``numeric``
339
-
``convert_timedelta`` ``timedelta``
340
-
===================== =============
333
+
===================== =============
334
+
Old New
335
+
===================== =============
336
+
``convert_dates`` ``datetime``
337
+
``convert_numeric`` ``numeric``
338
+
``convert_timedelta`` ``timedelta``
339
+
===================== =============
341
340
342
341
Coercing types with ``DataFrame.convert_objects`` is now implemented using the
343
342
keyword argument ``coerce=True``. Previously types were coerced by setting a
@@ -598,19 +597,22 @@ Other API Changes
598
597
- Enable serialization of lists and dicts to strings in ExcelWriter (:issue:`8188`)
599
598
- Allow passing `kwargs` to the interpolation methods (:issue:`10378`).
600
599
- Serialize metadata properties of subclasses of pandas objects (:issue:`10553`).
601
-
- Allow ``DataFrame`` with ``MultiIndex`` columns to be written to Excel (:issue:`10564`). This was changed in 0.16.2 as the read-back method could not always guarantee perfect fidelity (:issue:`9794`).
600
+
- Allow ``DataFrame`` with ``MultiIndex`` columns to be written to Excel (:issue:`10564`). This was changed in 0.16.2 as the read-back method could not always guarantee perfect fidelity (:issue:`9794`).
602
601
- ``Categorical.unique`` now returns new ``Categorical`` which ``categories`` and ``codes`` are unique, rather than returning ``np.array`` (:issue:`10508`)
603
602
604
603
- unordered category: values and categories are sorted by appearance order.
605
604
- ordered category: values are sorted by appearance order, categories keeps existing order.
- Bug in ``read_csv`` when using the ``nrows`` or ``chunksize`` parameters if file contains only a header line (:issue:`9535`)
776
778
777
779
- Bug in ``pd.DataFrame`` when constructing an empty DataFrame with a string dtype (:issue:`9428`)
778
-
- Bug in ``pd.unique`` for arrays with the ``datetime64`` or ``timedelta64`` dtype that meant an array with object dtype was returned instead the original dtype (:issue:`9431`)
780
+
- Bug in ``pd.unique`` for arrays with the ``datetime64`` or ``timedelta64`` dtype that meant an array with object dtype was returned instead the original dtype (:issue:`9431`)
779
781
- Bug in ``DatetimeIndex.take`` and ``TimedeltaIndex.take`` may not raise ``IndexError`` against invalid index (:issue:`10295`)
780
782
- Bug in ``Series([np.nan]).astype('M8[ms]')``, which now returns ``Series([pd.NaT])`` (:issue:`10747`)
781
783
- Bug in ``PeriodIndex.order`` reset freq (:issue:`10295`)
0 commit comments