Skip to content

Commit

Permalink
fix comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Nov 17, 2023
1 parent 332546a commit d667653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/_libs/lib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1917,7 +1917,7 @@ cdef class StringValidator(Validator):
return isinstance(value, str)

cdef bint is_array_typed(self) except -1:
return self.dtype.type == cnp.NPY_UNICODE
return self.dtype.type_num == cnp.NPY_UNICODE


cpdef bint is_string_array(ndarray values, bint skipna=False):
Expand All @@ -1934,7 +1934,7 @@ cdef class BytesValidator(Validator):
return isinstance(value, bytes)

cdef bint is_array_typed(self) except -1:
return self.dtype.type == cnp.NPY_STRING
return self.dtype.type_num == cnp.NPY_STRING


cdef bint is_bytes_array(ndarray values, bint skipna=False):
Expand Down

0 comments on commit d667653

Please sign in to comment.