Ejemplo n.º 1
0
 def loc(self) -> InterfaceGetItem['Frame']:
     '''Label-based selection where labels not specified will define a new container containing those labels filled with the fill value.
     '''
     def func(key: GetItemKeyType) -> 'Batch':
         return self._batch_apply(
                 lambda c: InterfaceFillValue(c,
                         fill_value=self._fill_value,
                         axis=self._axis).loc[key]
                 )
     return InterfaceGetItem(func)
Ejemplo n.º 2
0
 def bloc(self) -> InterfaceGetItem['Batch']:
     return InterfaceGetItem(self._extract_bloc)
Ejemplo n.º 3
0
 def loc(self) -> InterfaceGetItem['Frame']:
     '''Label-based selection where labels not specified will define a new container containing those labels filled with the fill value.
     '''
     if self._container._NDIM == 1:
         return InterfaceGetItem(self._extract_loc1d)
     return InterfaceGetItem(self._extract_loc2d_compound)
Ejemplo n.º 4
0
 def iloc(self) -> InterfaceGetItem['Frame']:
     return InterfaceGetItem(self._extract_iloc) #type: ignore
Ejemplo n.º 5
0
 def iloc(self) -> InterfaceGetItem['Bus']:
     return InterfaceGetItem(self._extract_iloc)
Ejemplo n.º 6
0
 def loc(self) -> InterfaceGetItem['Yarn']:
     return InterfaceGetItem(self._extract_loc)
Ejemplo n.º 7
0
 def iloc(self) -> InterfaceGetItem[TContainer]:
     return InterfaceGetItem(self._extract_iloc)  #type: ignore