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
closes#6194
Author: sinhrks <[email protected]>
Closes#13791 from sinhrks/index_dropna and squashes the following commits:
1672f26 [sinhrks] ENH: add Index.dropna
- ``Index.astype()`` now accepts an optional boolean argument ``copy``, which allows optional copying if the requirements on dtype are satisfied (:issue:`13209`)
294
+
- ``Index`` now supports ``.str.extractall()`` which returns a ``DataFrame``, the see :ref:`docs here <text.extractall>` (:issue:`10008`, :issue:`13156`)
295
+
296
+
.. ipython:: python
297
+
298
+
idx = pd.Index(["a1a2", "b1", "c1"])
299
+
idx.str.extractall("[ab](?P<digit>\d)")
300
+
262
301
.. _whatsnew_0190.enhancements.other:
263
302
264
303
Other enhancements
@@ -273,14 +312,8 @@ Other enhancements
273
312
pd.to_numeric(s, downcast='unsigned')
274
313
pd.to_numeric(s, downcast='integer')
275
314
276
-
- ``Index`` now supports ``.str.extractall()`` which returns a ``DataFrame``, the see :ref:`docs here <text.extractall>` (:issue:`10008`, :issue:`13156`)
277
315
- ``.to_hdf/read_hdf()`` now accept path objects (e.g. ``pathlib.Path``, ``py.path.local``) for the file path (:issue:`11773`)
278
316
279
-
.. ipython:: python
280
-
281
-
idx = pd.Index(["a1a2", "b1", "c1"])
282
-
idx.str.extractall("[ab](?P<digit>\d)")
283
-
284
317
- ``Timestamp`` can now accept positional and keyword parameters similar to :func:`datetime.datetime` (:issue:`10758`, :issue:`11630`)
285
318
286
319
.. ipython:: python
@@ -295,22 +328,14 @@ Other enhancements
295
328
296
329
- The ``pd.read_html()`` has gained support for the ``na_values``, ``converters``, ``keep_default_na`` options (:issue:`13461`)
297
330
298
-
- ``Index.astype()`` now accepts an optional boolean argument ``copy``, which allows optional copying if the requirements on dtype are satisfied (:issue:`13209`)
299
-
- ``Index`` now supports the ``.where()`` function for same shape indexing (:issue:`13170`)
300
-
301
-
.. ipython:: python
302
-
303
-
idx = pd.Index(['a', 'b', 'c'])
304
-
idx.where([True, False, True])
305
-
306
331
- ``Categorical.astype()`` now accepts an optional boolean argument ``copy``, effective when dtype is categorical (:issue:`13209`)
307
332
- ``DataFrame`` has gained the ``.asof()`` method to return the last non-NaN values according to the selected subset (:issue:`13358`)
308
333
- Consistent with the Python API, ``pd.read_csv()`` will now interpret ``+inf`` as positive infinity (:issue:`13274`)
309
334
- The ``DataFrame`` constructor will now respect key ordering if a list of ``OrderedDict`` objects are passed in (:issue:`13304`)
310
335
- ``pd.read_html()`` has gained support for the ``decimal`` option (:issue:`12907`)
311
336
- A function :func:`union_categorical` has been added for combining categoricals, see :ref:`Unioning Categoricals<categorical.union>` (:issue:`13361`)
312
337
- ``Series`` has gained the properties ``.is_monotonic``, ``.is_monotonic_increasing``, ``.is_monotonic_decreasing``, similar to ``Index`` (:issue:`13336`)
313
-
- ``DataFrame.to_sql`` now allows a single value as the SQL type for all columns (:issue:`11886`).
338
+
- ``DataFrame.to_sql()`` now allows a single value as the SQL type for all columns (:issue:`11886`).
314
339
- ``Series.append`` now supports the ``ignore_index`` option (:issue:`13677`)
315
340
- ``.to_stata()`` and ``StataWriter`` can now write variable labels to Stata dta files using a dictionary to make column names to labels (:issue:`13535`, :issue:`13536`)
316
341
- ``.to_stata()`` and ``StataWriter`` will automatically convert ``datetime64[ns]`` columns to Stata format ``%tc``, rather than raising a ``ValueError`` (:issue:`12259`)
@@ -350,7 +375,7 @@ API changes
350
375
- ``astype()`` will now accept a dict of column name to data types mapping as the ``dtype`` argument. (:issue:`12086`)
351
376
- The ``pd.read_json`` and ``DataFrame.to_json`` has gained support for reading and writing json lines with ``lines`` option see :ref:`Line delimited json <io.jsonl>` (:issue:`9180`)
352
377
- ``pd.Timedelta(None)`` is now accepted and will return ``NaT``, mirroring ``pd.Timestamp`` (:issue:`13687`)
353
-
- ``Timestamp``, ``Period``, ``DatetimeIndex``, ``PeriodIndex`` and ``.dt`` accessor have ``.is_leap_year`` property to check whether the date belongs to a leap year. (:issue:`13727`)
378
+
- ``Timestamp``, ``Period``, ``DatetimeIndex``, ``PeriodIndex`` and ``.dt`` accessor have gained a ``.is_leap_year`` property to check whether the date belongs to a leap year. (:issue:`13727`)
0 commit comments