Пример #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)
Пример #2
0
 def bloc(self) -> InterfaceGetItem['Batch']:
     return InterfaceGetItem(self._extract_bloc)
Пример #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)
Пример #4
0
 def iloc(self) -> InterfaceGetItem['Frame']:
     return InterfaceGetItem(self._extract_iloc) #type: ignore
Пример #5
0
 def iloc(self) -> InterfaceGetItem['Bus']:
     return InterfaceGetItem(self._extract_iloc)
Пример #6
0
 def loc(self) -> InterfaceGetItem['Yarn']:
     return InterfaceGetItem(self._extract_loc)
Пример #7
0
 def iloc(self) -> InterfaceGetItem[TContainer]:
     return InterfaceGetItem(self._extract_iloc)  #type: ignore