Skip to content

Commit cffe566

Browse files
authored
CLN: Remove unused code (#57860)
1 parent 9ac047d commit cffe566

File tree

3 files changed

+0
-27
lines changed

3 files changed

+0
-27
lines changed

pandas/core/arrays/datetimes.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -767,17 +767,6 @@ def _format_native_types(
767767
# -----------------------------------------------------------------
768768
# Comparison Methods
769769

770-
def _has_same_tz(self, other) -> bool:
771-
# vzone shouldn't be None if value is non-datetime like
772-
if isinstance(other, np.datetime64):
773-
# convert to Timestamp as np.datetime64 doesn't have tz attr
774-
other = Timestamp(other)
775-
776-
if not hasattr(other, "tzinfo"):
777-
return False
778-
other_tz = other.tzinfo
779-
return timezones.tz_compare(self.tzinfo, other_tz)
780-
781770
def _assert_tzawareness_compat(self, other) -> None:
782771
# adapted from _Timestamp._assert_tzawareness_compat
783772
other_tz = getattr(other, "tzinfo", None)

pandas/core/config_init.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,6 @@ def use_numba_cb(key: str) -> None:
9595
to ``precision`` in :meth:`numpy.set_printoptions`.
9696
"""
9797

98-
pc_colspace_doc = """
99-
: int
100-
Default space for DataFrame columns.
101-
"""
102-
10398
pc_max_rows_doc = """
10499
: int
105100
If max_rows is exceeded, switch to truncate view. Depending on
@@ -205,11 +200,6 @@ def use_numba_cb(key: str) -> None:
205200
Enabling this may affect to the performance (default: False)
206201
"""
207202

208-
pc_ambiguous_as_wide_doc = """
209-
: boolean
210-
Whether to handle Unicode characters belong to Ambiguous as Wide (width=2)
211-
(default: False)
212-
"""
213203

214204
pc_table_schema_doc = """
215205
: boolean

pandas/core/generic.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4242,12 +4242,6 @@ def get(self, key, default=None):
42424242
except (KeyError, ValueError, IndexError):
42434243
return default
42444244

4245-
@final
4246-
@property
4247-
def _is_view(self) -> bool:
4248-
"""Return boolean indicating if self is view of another array"""
4249-
return self._mgr.is_view
4250-
42514245
@staticmethod
42524246
def _check_copy_deprecation(copy):
42534247
if copy is not lib.no_default:

0 commit comments

Comments
 (0)