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 param/method #22289

Closed
wants to merge 1 commit into from
Closed
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
5 changes: 3 additions & 2 deletions ci/print_skipped.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def parse_results(filename):
root = tree.getroot()
skipped = []

current_class = old_class = ''
current_class = ''
i = 1
assert i - 1 == len(skipped)
for el in root.findall('testcase'):
Expand All @@ -24,7 +24,8 @@ def parse_results(filename):
out = ''
if old_class != current_class:
ndigits = int(math.log(i, 10) + 1)
out += ('-' * (len(name + msg) + 4 + ndigits) + '\n') # 4 for : + space + # + space
# 4 for : + space + # + space
out += ('-' * (len(name + msg) + 4 + ndigits) + '\n')
out += '#{i} {name}: {msg}'.format(i=i, name=name, msg=msg)
skipped.append(out)
i += 1
Expand Down
4 changes: 2 additions & 2 deletions pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4695,7 +4695,7 @@ def _maybe_update_attributes(self, attrs):
""" Update Index attributes (e.g. freq) depending on op """
return attrs

def _validate_for_numeric_unaryop(self, op, opstr):
def _validate_for_numeric_unaryop(self, opstr):
""" validate if we can perform a numeric unary operation """

if not self._is_numeric_dtype:
Expand Down Expand Up @@ -4776,7 +4776,7 @@ def _make_evaluate_unary(op, opstr):

def _evaluate_numeric_unary(self):

self._validate_for_numeric_unaryop(op, opstr)
self._validate_for_numeric_unaryop(opstr)
attrs = self._get_attributes_dict()
attrs = self._maybe_update_attributes(attrs)
return Index(op(self.values), **attrs)
Expand Down
5 changes: 0 additions & 5 deletions pandas/core/indexes/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1815,11 +1815,6 @@ def cdate_range(start=None, end=None, periods=None, freq='C', tz=None,
Normalize start/end dates to midnight before generating date range
name : string, default None
Name of the resulting DatetimeIndex
weekmask : string, Default 'Mon Tue Wed Thu Fri'
weekmask of valid business days, passed to ``numpy.busdaycalendar``
holidays : list
list/array of dates to exclude from the set of valid business days,
passed to ``numpy.busdaycalendar``
closed : string, default None
Make the interval closed with respect to the given frequency to
the 'left', 'right', or both sides (None)
Expand Down
5 changes: 0 additions & 5 deletions pandas/core/indexes/multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,11 +752,6 @@ def _constructor(self):
def inferred_type(self):
return 'mixed'

@staticmethod
def _from_elements(values, labels=None, levels=None, names=None,
sortorder=None):
return MultiIndex(levels, labels, names, sortorder=sortorder)

def _get_level_number(self, level):
count = self.names.count(level)
if (count > 1) and not is_integer(level):
Expand Down