qteasy/history.py
def as_type(self, dtype):
        """ Convert the data type of current HistoryPanel to another

        :param dtype:
        :return:
        """
        ALL_DTYPES = ['float', 'int']
        if not self.is_empty:
            assert isinstance(dtype, str), f'InputError, dtype should be a string, got {type(dtype)}'
            assert dtype in ALL_DTYPES, f'data type {dtype} is not recognized or not supported!'
            self._values = self.values.astype(dtype)
        return self
 Convert the data type of current HistoryPanel to another

        :param dtype:
        :return:
        
Convert the data type of current HistoryPanel to another
Convert the data type of current HistoryPanel to another
def as_type(self, dtype):
        ALL_DTYPES = ['float', 'int']
        if not self.is_empty:
            assert isinstance(dtype, str), f'InputError, dtype should be a string, got {type(dtype)}'
            assert dtype in ALL_DTYPES, f'data type {dtype} is not recognized or not supported!'
            self._values = self.values.astype(dtype)
        return self
def as_type ( self , dtype ) : ALL_DTYPES = [ 'float' , 'int' ] if not self . is_empty : assert isinstance ( dtype , str ) , f'InputError, dtype should be a string, got {type(dtype)}' assert dtype in ALL_DTYPES , f'data type {dtype} is not recognized or not supported!' self . _values = self . values . astype ( dtype ) return self
Convert the data type of current HistoryPanel to another
Convert the data type of current HistoryPanel to another
""" Convert the data type of current HistoryPanel to another

        :param dtype:
        :return:
        """
None
self
dtype
None