input: from typing import List
  
  
  def compress_sequence(nums: List[int]) -> List[List[int]]:
      """ Compress the given data sequence by grouping consecutive numbers with the same sign (positive or negative).
      >>> compress_sequence([9, -2, 6, 0, -7])
      [[9], [-2], [6, 0], [-7]]
      """
output:     result = []
      if not nums:
          return result
      
      current_group = [nums[0]]
      current_sign = nums[0] >= 0
      
      for num in nums[1:]:
          if (num >= 0) == current_sign:
              current_group.append(num)
          else:
              result.append(current_group)
              current_group = [num]
              current_sign = num >= 0
      
      result.append(current_group)
      return result