Skip to content

Commit

Permalink
Separate interval_range and rangeindex version check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam3851 committed Mar 2, 2018
1 parent 3230761 commit e3b87c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pandas/tests/io/generate_legacy_storage_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ def create_data():
if _loose_version >= LooseVersion('0.18'):
from pandas import RangeIndex
index['range'] = RangeIndex(10)
if _loose_version >= '0.21':
from pandas import interval_range
index['interval'] = interval_range(0, periods=10)

if _loose_version >= LooseVersion('0.21'):
from pandas import interval_range
index['interval'] = interval_range(0, periods=10)

mi = dict(reg2=MultiIndex.from_tuples(
tuple(zip(*[[u'bar', u'bar', u'baz', u'baz', u'foo',
Expand Down

0 comments on commit e3b87c1

Please sign in to comment.