(cls, filename, sheet=None)
return data
Read a data table from a file. The path can be absolute or relative.

        :param filename: File name
        :type filename: str
        :param sheet: Sheet in a file (optional)
        :type sheet: str
        :return: a new data table
        :rtype: Orange.data.Table
Read a data table from a file. The path can be absolute or relative.
Read a data table from a file . The path can be absolute or relative .
def from_file(cls, filename, sheet=None):
        """
        Read a data table from a file. The path can be absolute or relative.

        :param filename: File name
        :type filename: str
        :param sheet: Sheet in a file (optional)
        :type sheet: str
        :return: a new data table
        :rtype: Orange.data.Table
        """
        from Orange.data.io import FileFormat

        absolute_filename = FileFormat.locate(filename, dataset_dirs)
        reader = FileFormat.get_reader(absolute_filename)
        reader.select_sheet(sheet)
        data = reader.read()

        # Readers return plain table. Make sure to cast it to appropriate
        # (subclass) type
        if cls != data.__class__:
            data = cls(data)

        # no need to call _init_ids as fuctions from .io already
        # construct a table with .ids

        data.__file__ = absolute_filename
        return data
def from_file ( cls , filename , sheet = None ) : from Orange . data . io import FileFormat absolute_filename = FileFormat . locate ( filename , dataset_dirs ) reader = FileFormat . get_reader ( absolute_filename ) reader . select_sheet ( sheet ) data = reader . read ( ) # Readers return plain table. Make sure to cast it to appropriate # (subclass) type if cls != data . __class__ : data = cls ( data ) # no need to call _init_ids as fuctions from .io already # construct a table with .ids data . __file__ = absolute_filename return data