234f5acc238c52adda88daf87b873f45196d23c0,pandas/tests/indexes/ranges/test_range.py,TestRangeIndex,test_insert,#TestRangeIndex#,93

Before Change



        // GH 18295 (test missing)
        expected = Float64Index([0, np.nan, 1, 2, 3, 4])
        for na in (np.nan, pd.NaT, None):
            result = RangeIndex(5).insert(1, na)
            tm.assert_index_equal(result, expected)

After Change


            tm.assert_index_equal(result, expected)

        result = RangeIndex(5).insert(1, pd.NaT)
        expected = pd.Index([0, pd.NaT, 1, 2, 3, 4], dtype=object)
        tm.assert_index_equal(result, expected)

    def test_delete(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pandas-dev/pandas
Commit Name: 234f5acc238c52adda88daf87b873f45196d23c0
Time: 2020-09-17
Author: jbrockmendel@gmail.com
File Name: pandas/tests/indexes/ranges/test_range.py
Class Name: TestRangeIndex
Method Name: test_insert


Project Name: J535D165/recordlinkage
Commit Name: 5e82953e37f859b023eb2050abdfedc8c7447fb0
Time: 2016-02-06
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/indexing.py
Class Name: Pairs
Method Name: iterindex


Project Name: home-assistant/home-assistant
Commit Name: 6e1785173fd670c9a57a2fd7d6dd468945597d20
Time: 2017-08-04
Author: OverloadUT@gmail.com
File Name: homeassistant/components/recorder/models.py
Class Name: States
Method Name: States_1