Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jschendel committed Nov 20, 2017
1 parent 71a09eb commit c1a0901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/tests/indexes/test_interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def test_delete(self, closed):
IntervalIndex.from_tuples([(1, 2), ('a', 'z'), (3.14, 6.28)])])
def test_insert(self, data):
item = data[0]
idx_item = IntervalIndex([item], closed=data.closed)
idx_item = IntervalIndex([item])

# start
expected = idx_item.append(data)
Expand Down Expand Up @@ -348,7 +348,7 @@ def test_insert(self, data):
data.insert(1, bad_item)

# GH 18295 (test missing)
na_idx = IntervalIndex([np.nan], closed=data.closed)
na_idx = IntervalIndex.from_tuples([np.nan], closed=data.closed)
for na in (np.nan, pd.NaT, None):
expected = data[:1].append(na_idx).append(data[1:])
result = data.insert(1, na)
Expand Down

0 comments on commit c1a0901

Please sign in to comment.