diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 931f19a7901bd..e4862ac1030b6 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -767,17 +767,6 @@ def _format_native_types( # ----------------------------------------------------------------- # Comparison Methods - def _has_same_tz(self, other) -> bool: - # vzone shouldn't be None if value is non-datetime like - if isinstance(other, np.datetime64): - # convert to Timestamp as np.datetime64 doesn't have tz attr - other = Timestamp(other) - - if not hasattr(other, "tzinfo"): - return False - other_tz = other.tzinfo - return timezones.tz_compare(self.tzinfo, other_tz) - def _assert_tzawareness_compat(self, other) -> None: # adapted from _Timestamp._assert_tzawareness_compat other_tz = getattr(other, "tzinfo", None) diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py index 1a5d0842d6eee..46c9139c3456c 100644 --- a/pandas/core/config_init.py +++ b/pandas/core/config_init.py @@ -95,11 +95,6 @@ def use_numba_cb(key: str) -> None: to ``precision`` in :meth:`numpy.set_printoptions`. """ -pc_colspace_doc = """ -: int - Default space for DataFrame columns. -""" - pc_max_rows_doc = """ : int If max_rows is exceeded, switch to truncate view. Depending on @@ -205,11 +200,6 @@ def use_numba_cb(key: str) -> None: Enabling this may affect to the performance (default: False) """ -pc_ambiguous_as_wide_doc = """ -: boolean - Whether to handle Unicode characters belong to Ambiguous as Wide (width=2) - (default: False) -""" pc_table_schema_doc = """ : boolean diff --git a/pandas/core/generic.py b/pandas/core/generic.py index d46fdffdd5e23..c9e6ffe1d7dc6 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4242,12 +4242,6 @@ def get(self, key, default=None): except (KeyError, ValueError, IndexError): return default - @final - @property - def _is_view(self) -> bool: - """Return boolean indicating if self is view of another array""" - return self._mgr.is_view - @staticmethod def _check_copy_deprecation(copy): if copy is not lib.no_default: