(self, filename)
Save a data table to a file. The path can be absolute or relative.

        :param filename: File name
        :type filename: str
Save a data table to a file. The path can be absolute or relative.
Save a data table to a file . The path can be absolute or relative .
def save(self, filename):
        """
        Save a data table to a file. The path can be absolute or relative.

        :param filename: File name
        :type filename: str
        """
        ext = os.path.splitext(filename)[1]
        from Orange.data.io import FileFormat
        writer = FileFormat.writers.get(ext)
        if not writer:
            desc = FileFormat.names.get(ext)
            if desc:
                raise IOError(
                    "Writing of {}s is not supported".format(desc.lower()))
            else:
                raise IOError("Unknown file name extension.")
        writer.write_file(filename, self)
def save ( self , filename ) : ext = os . path . splitext ( filename ) [ 1 ] from Orange . data . io import FileFormat writer = FileFormat . writers . get ( ext ) if not writer : desc = FileFormat . names . get ( ext ) if desc : raise IOError ( "Writing of {}s is not supported" . format ( desc . lower ( ) ) ) else : raise IOError ( "Unknown file name extension." ) writer . write_file ( filename , self )