Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a738223

Browse files
topper-123jreback
authored andcommittedMay 15, 2019
CLN: remove compat.lrange (#26396)
1 parent 3b24fb6 commit a738223

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+213
-288
lines changed
 

‎pandas/compat/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
55
Cross-compatible functions for different versions of Python.
66
7-
Key items to import for compatible code:
8-
* lists: lrange()
9-
107
Other items:
118
* platform checker
129
"""
@@ -19,11 +16,6 @@
1916
PYPY = platform.python_implementation() == 'PyPy'
2017

2118

22-
# list-producing versions of the major Python iterating functions
23-
def lrange(*args, **kwargs):
24-
return list(range(*args, **kwargs))
25-
26-
2719
# ----------------------------------------------------------------------------
2820
# functions largely based / taken from the six module
2921

‎pandas/plotting/_converter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from pandas._libs import lib, tslibs
1313
from pandas._libs.tslibs import resolution
1414
from pandas._libs.tslibs.frequencies import FreqGroup, get_freq
15-
from pandas.compat import lrange
1615

1716
from pandas.core.dtypes.common import (
1817
is_datetime64_ns_dtype, is_float, is_float_dtype, is_integer,
@@ -1029,7 +1028,7 @@ def __call__(self):
10291028
base = self.base
10301029
(d, m) = divmod(vmin, base)
10311030
vmin = (d + 1) * base
1032-
locs = lrange(vmin, vmax + 1, base)
1031+
locs = list(range(vmin, vmax + 1, base))
10331032
return locs
10341033

10351034
def autoscale(self):

0 commit comments

Comments
 (0)
Please sign in to comment.