Skip to content

CLN: Remove unused code #57860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions pandas/core/arrays/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 0 additions & 10 deletions pandas/core/config_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down