Detail: ILoc: Constructor
- ILoc.__init__(key)[source]
>>> f = sf.Frame.from_fields(((10, 2, 8, 3), (False, True, True, False), ('1517-01-01', '1517-04-01', '1517-12-31', '1517-06-30')), index=sf.IndexHierarchy.from_product((0, 1), ('p', 'q')), columns=('a', 'b', 'c'), dtypes=dict(c=np.datetime64), name='x') >>> f <Frame: x> <Index> a b c <<U1> <IndexHierarchy> 0 p 10 False 1517-01-01 0 q 2 True 1517-04-01 1 p 8 True 1517-12-31 1 q 3 False 1517-06-30 <int64> <<U1> <int64> <bool> <datetime64[D]> >>> f.loc[sf.ILoc[-2:], ['a', 'c']] <Frame: x> <Index> a c <<U1> <IndexHierarchy> 1 p 8 1517-12-31 1 q 3 1517-06-30 <int64> <<U1> <int64> <datetime64[D]> >>> f.loc[sf.ILoc[-1], 'b':] <Series: (1, 'q')> <Index> b False c 1517-06-30 <<U1> <object>
ILoc: Constructor | Attribute | Display