(table)
Check if input table has no nan or +-inf entries.

        Parameters
        ----------
        table : pd.Series or pd.DataFrame
            Input table.

        Raises
        ------
        TypeError
            Inappropriate type of `table`.

        ValueError
            At least one entry invalid.
Check if input table has no nan or +-inf entries.
Check if input table has no nan or + - inf entries .
def check_valid_entries(table):
        """Check if input table has no nan or +-inf entries.

        Parameters
        ----------
        table : pd.Series or pd.DataFrame
            Input table.

        Raises
        ------
        TypeError
            Inappropriate type of `table`.

        ValueError
            At least one entry invalid.

        """
        if not isinstance(table, (pd.Series, pd.DataFrame)):
            raise TypeError('Unsupported type: {}'.format(type(table)))

        if not np.all(np.isfinite(table.values)):
            raise ValueError('There is an invalid entry')
def check_valid_entries ( table ) : if not isinstance ( table , ( pd . Series , pd . DataFrame ) ) : raise TypeError ( 'Unsupported type: {}' . format ( type ( table ) ) ) if not np . all ( np . isfinite ( table . values ) ) : raise ValueError ( 'There is an invalid entry' )