Skip to content
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

Remove unused get methods that would raise AttributeError if called #17169

Merged
merged 2 commits into from
Aug 7, 2017
Merged
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
13 changes: 0 additions & 13 deletions pandas/core/internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,6 @@ def reindex_axis(self, indexer, method=None, axis=1, fill_value=None,
fill_value=fill_value, mask_info=mask_info)
return self.make_block(new_values, fastpath=True)

def get(self, item):
loc = self.items.get_loc(item)
return self.values[loc]

def iget(self, i):
return self.values[i]

Expand Down Expand Up @@ -1658,13 +1654,6 @@ def set(self, locs, values, check=False):
assert locs.tolist() == [0]
self.values = values

def get(self, item):
if self.ndim == 1:
loc = self.items.get_loc(item)
return self.values[loc]
else:
return self.values

def putmask(self, mask, new, align=True, inplace=False, axis=0,
transpose=False, mgr=None):
"""
Expand Down Expand Up @@ -4722,8 +4711,6 @@ def _concat_indexes(indexes):

def _block2d_to_blocknd(values, placement, shape, labels, ref_items):
""" pivot to the labels shape """
from pandas.core.internals import make_block

panel_shape = (len(placement),) + shape

# TODO: lexsort depth needs to be 2!!
Expand Down