code: def from_data(cls, data):
          
          frequencies = collections.Counter(data)
          return cls.from_frequencies(frequencies, concat=_guess_concat(data))
docs: Build Huffman code table from symbol sequence
  
          :param data: sequence of symbols (e.g. byte string, unicode string, list, iterator)
          :return: HuffmanCoder