How can I create a new column of binary values from my TfidfVectorizer sparse matrix?
var = (0,833)
new_var = np.zeros(1000)
for i in var:
    new_var[i] = 1


I would need your sparse matrix datatype to give you a more precise answer.