pandas.Int64Index — pandas 1.3.5 documentation
pandas.pydata.org › api › pandasImmutable sequence used for indexing and alignment. The basic object storing axis labels for all pandas objects. Int64Index is a special case of Index with purely integer labels. . Parameters data array-like (1-dimensional) dtype NumPy dtype (default: int64) copy bool. Make a copy of input ndarray. name object. Name to be stored in the index.
Python Examples of pandas.Int64Index
www.programcreek.com › 101374 › pandasdef test_take_fill_value(self): # GH 12631 idx = pd.RangeIndex(1, 4, name='xxx') result = idx.take(np.array([1, 0, -1])) expected = pd.Int64Index([2, 1, 3], name='xxx') tm.assert_index_equal(result, expected) # fill_value msg = "Unable to fill values because RangeIndex cannot contain NA" with pytest.raises(ValueError, match=msg): idx.take(np.array([1, 0, -1]), fill_value=True) # allow_fill=False result = idx.take(np.array([1, 0, -1]), allow_fill=False, fill_value=True) expected = pd ...