8000 CLN: remove unused get methods in internals (#17169) · pandas-dev/pandas@65e0451 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 65e0451

Browse files
jbrockmendeljorisvandenbossche
authored andcommitted
CLN: remove unused get methods in internals (#17169)
* Remove unused get methods that would raise AttributeError if called * Remove unnecessary import
1 parent cda091f commit 65e0451

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

pandas/core/internals.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,6 @@ def reindex_axis(self, indexer, method=None, axis=1, fill_value=None,
327327
fill_value=fill_value, mask_info=mask_info)
328328
return self.make_block(new_values, fastpath=True)
329329

330-
def get(self, item):
331-
loc = self.items.get_loc(item)
332-
return self.values[loc]
333-
334330
def iget(self, i):
335331
return self.values[i]
336332

@@ -1662,13 +1658,6 @@ def set(self, locs, values, check=False):
16621658
assert locs.tolist() == [0]
16631659
self.values = values
16641660

1665-
def get(self, item):
1666-
if self.ndim == 1:
1667-
loc = self.items.get_loc(item)
1668- 8000
return self.values[loc]
1669-
else:
1670-
return self.values
1671-
16721661
def putmask(self, mask, new, align=True, inplace=False, axis=0,
16731662
transpose=False, mgr=None):
16741663
"""
@@ -4730,8 +4719,6 @@ def _concat_indexes(indexes):
47304719

47314720
def _block2d_to_blocknd(values, placement, shape, labels, ref_items):
47324721
""" pivot to the labels shape """
4733-
from pandas.core.internals import make_block
4734-
47354722
panel_shape = (len(placement),) + shape
47364723

47374724
# TODO: lexsort depth needs to be 2!!

0 commit comments

Comments
 (0)
0