diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 318fe62a73ed27..a3d17b2b32353c 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -315,6 +315,8 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - :meth:`pandas.Series.str.cat` now defaults to aligning ``others``, using ``join='left'`` (:issue:`27611`) - :meth:`pandas.Series.str.cat` does not accept list-likes *within* list-likes anymore (:issue:`27611`) - Removed the previously deprecated :meth:`ExtensionArray._formatting_values`. Use :attr:`ExtensionArray._formatter` instead. (:issue:`23601`) +- :func:`read_excel` removed support for "skip_footer" argument, use "skipfooter" instead (:issue:`18836`) +- :meth:`DataFrame.to_records` no longer supports the argument "convert_datetime64" (:issue:`18902`) - Removed the previously deprecated ``IntervalIndex.from_intervals`` in favor of the :class:`IntervalIndex` constructor (:issue:`19263`) - Changed the default value for the "keep_tz" argument in :meth:`DatetimeIndex.to_series` to ``True`` (:issue:`23739`) - Ability to read pickles containing :class:`Categorical` instances created with pre-0.16 version of pandas has been removed (:issue:`27538`) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 5baba0bae1d452..cb74fff51e7a38 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -66,7 +66,6 @@ ensure_platform_int, infer_dtype_from_object, is_bool_dtype, - is_datetime64_any_dtype, is_dict_like, is_dtype_equal, is_extension_array_dtype, @@ -1685,9 +1684,7 @@ def from_records( return cls(mgr) - def to_records( - self, index=True, convert_datetime64=None, column_dtypes=None, index_dtypes=None - ): + def to_records(self, index=True, column_dtypes=None, index_dtypes=None): """ Convert DataFrame to a NumPy record array. @@ -1699,11 +1696,6 @@ def to_records( index : bool, default True Include index in resulting record array, stored in 'index' field or using the index label, if set. - convert_datetime64 : bool, default None - .. deprecated:: 0.23.0 - - Whether to convert the index to datetime.datetime if it is a - DatetimeIndex. column_dtypes : str, type, dict, default None .. versionadded:: 0.24.0 @@ -1778,24 +1770,12 @@ def to_records( dtype=[('I', 'S1'), ('A', '