def category?
      type == :category
    end
Tells if vector is categorical or not.
@return [true, false] true if vector is of type category, false otherwise
@example
dv = Daru::Vector.new [1, 2, 3], type: :category
dv.category?
# => true