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
Previously, attempting to evaluate an Index in a boolean context
prints an error message listing various alternatives, one of which is
`.empty`, which was not actually implemented on `Index`.
Author: Scott Sanderson <[email protected]>
This patch had conflicts when merged, resolved by
Committer: Jeff Reback <[email protected]>
closes#13207Closes#15270 from ssanderson/add-empty-to-index and squashes the following commits:
bb0126f [Scott Sanderson] ENH: Add empty property to Index.
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.20.0.txt
+2
Original file line number
Diff line number
Diff line change
@@ -310,11 +310,13 @@ Other Enhancements
310
310
- ``Series/DataFrame.squeeze()`` have gained the ``axis`` parameter. (:issue:`15339`)
311
311
- ``DataFrame.to_excel()`` has a new ``freeze_panes`` parameter to turn on Freeze Panes when exporting to Excel (:issue:`15160`)
312
312
- HTML table output skips ``colspan`` or ``rowspan`` attribute if equal to 1. (:issue:`15403`)
313
+
313
314
- ``pd.TimedeltaIndex`` now has a custom datetick formatter specifically designed for nanosecond level precision (:issue:`8711`)
314
315
- ``pd.types.concat.union_categoricals`` gained the ``ignore_ordered`` argument to allow ignoring the ordered attribute of unioned categoricals (:issue:`13410`). See the :ref:`categorical union docs <categorical.union>` for more information.
315
316
- ``pandas.io.json.json_normalize()`` with an empty ``list`` will return an empty ``DataFrame`` (:issue:`15534`)
316
317
- ``pd.DataFrame.to_latex`` and ``pd.DataFrame.to_string`` now allow optional header aliases. (:issue:`15536`)
317
318
- Re-enable the ``parse_dates`` keyword of ``read_excel`` to parse string columns as dates (:issue:`14326`)
319
+
- Added ``.empty`` property to subclasses of ``Index``. (:issue:`15270`)
0 commit comments