|
3 | 3 | What's new in 1.0.0 (??)
|
4 | 4 | ------------------------
|
5 | 5 |
|
6 |
| -.. warning:: |
| 6 | +New Deprecation Policy |
| 7 | +~~~~~~~~~~~~~~~~~~~~~~ |
| 8 | + |
| 9 | +Starting with Pandas 1.0.0, pandas will adopt a version of `SemVer`_. |
| 10 | + |
| 11 | +Historically, pandas has used a "rolling" deprecation policy, with occasional |
| 12 | +outright breaking API changes. Where possible, we would deprecate the behavior |
| 13 | +we'd like to change, giving an option to adopt the new behavior (via a keyword |
| 14 | +or an alternative method), and issuing a warning for users of the old behavior. |
| 15 | +Sometimes, a deprecation was not possible, and we would make an outright API |
| 16 | +breaking change. |
| 17 | + |
| 18 | +We'll continue to *introduce* deprecations in major and minor releases (e.g. |
| 19 | +1.0.0, 1.1.0, ...). Those deprecations will be *enforced* in the next major |
| 20 | +release. |
| 21 | + |
| 22 | +Note that *behavior changes* and *API breaking changes* are not identical. API |
| 23 | +breaking changes will only be released in major versions. If we consider a |
| 24 | +behavior to be a bug, and fixing that bug induces a behavior change, we'll |
| 25 | +release that change in a minor release. This is a sometimes difficult judgment |
| 26 | +call that we'll do our best on. |
7 | 27 |
|
8 |
| - Starting with the 0.25.x series of releases, pandas only supports Python 3.5.3 and higher. |
9 |
| - See `Dropping Python 2.7 <https://pandas.pydata.org/pandas-docs/version/0.24/install.html#install-dropping-27>`_ for more details. |
| 28 | +This doesn't mean that pandas' pace of development will slow down. In the `2019 |
| 29 | +Pandas User Survey`_, about 95% of the respondents said they considered pandas |
| 30 | +"stable enough". This indicates there's an appetite for new features, even if it |
| 31 | +comes at the cost of break API. The difference is that now API breaking changes |
| 32 | +will be accompanied with a bump in the major version number (e.g. pandas 1.5.1 |
| 33 | +-> 2.0.0). |
| 34 | + |
| 35 | +See :ref:`policies.version` for more. |
| 36 | + |
| 37 | +.. _2019 Pandas User Survey: http://dev.pandas.io/pandas-blog/2019-pandas-user-survey.html |
| 38 | +.. _SemVer: https://semver.org |
10 | 39 |
|
11 | 40 | .. warning::
|
12 | 41 |
|
@@ -37,7 +66,7 @@ Other enhancements
|
37 | 66 | pandas (so it will become an integer or float dtype depending on the presence of missing data).
|
38 | 67 | (:issue:`28368`)
|
39 | 68 | - :meth:`DataFrame.to_json` now accepts an ``indent`` integer argument to enable pretty printing of JSON output (:issue:`12004`)
|
40 |
| - |
| 69 | +- :meth:`read_stata` can read Stata 119 dta files. (:issue:`28250`) |
41 | 70 |
|
42 | 71 | Build Changes
|
43 | 72 | ^^^^^^^^^^^^^
|
@@ -122,6 +151,7 @@ Performance improvements
|
122 | 151 | - Performance improvement in :func:`cut` when ``bins`` is an :class:`IntervalIndex` (:issue:`27668`)
|
123 | 152 | - Performance improvement in :meth:`DataFrame.corr` when ``method`` is ``"spearman"`` (:issue:`28139`)
|
124 | 153 | - Performance improvement in :meth:`DataFrame.replace` when provided a list of values to replace (:issue:`28099`)
|
| 154 | +- Performance improvement in :meth:`DataFrame.select_dtypes` by using vectorization instead of iterating over a loop (:issue:`28317`) |
125 | 155 |
|
126 | 156 | .. _whatsnew_1000.bug_fixes:
|
127 | 157 |
|
@@ -152,7 +182,8 @@ Datetimelike
|
152 | 182 | - Addition and subtraction of integer or integer-dtype arrays with :class:`Timestamp` will now raise ``NullFrequencyError`` instead of ``ValueError`` (:issue:`28268`)
|
153 | 183 | - Bug in :class:`Series` and :class:`DataFrame` with integer dtype failing to raise ``TypeError`` when adding or subtracting a ``np.datetime64`` object (:issue:`28080`)
|
154 | 184 | - Bug in :class:`Week` with ``weekday`` incorrectly raising ``AttributeError`` instead of ``TypeError`` when adding or subtracting an invalid type (:issue:`28530`)
|
155 |
| - |
| 185 | +- Bug in :class:`DataFrame` arithmetic operations when operating with a :class:`Series` with dtype `'timedelta64[ns]'` (:issue:`28049`) |
| 186 | +- |
156 | 187 |
|
157 | 188 | Timedelta
|
158 | 189 | ^^^^^^^^^
|
@@ -234,6 +265,7 @@ Plotting
|
234 | 265 | - Bug in :meth:`DataFrame.plot` when ``kind='box'`` and data contains datetime or timedelta data. These types are now automatically dropped (:issue:`22799`)
|
235 | 266 | - Bug in :meth:`DataFrame.plot.line` and :meth:`DataFrame.plot.area` produce wrong xlim in x-axis (:issue:`27686`, :issue:`25160`, :issue:`24784`)
|
236 | 267 | - Bug where :meth:`DataFrame.boxplot` would not accept a `color` parameter like `DataFrame.plot.box` (:issue:`26214`)
|
| 268 | +- Bug in the ``xticks`` argument being ignored for :meth:`DataFrame.plot.bar` (:issue:`14119`) |
237 | 269 | - :func:`set_option` now validates that the plot backend provided to ``'plotting.backend'`` implements the backend when the option is set, rather than when a plot is created (:issue:`28163`)
|
238 | 270 |
|
239 | 271 | Groupby/resample/rolling
|
|
0 commit comments