How to convert a python set to a numpy array? May 30, 2023 by Tarik Do: >>> numpy.array(list(c)) array([1, 4, 6]) And dtype is int (int64 on my side.)