test = np.rec.array([(0, 0, 0), (0, 0, 0), (0, 0, 0), (0, 0, 0), (0, 0, 0),
    (0, 0, 0), (0, 0, 0), (0, 0, 0), (0, 0, 0), (0, 0, 0)], dtype=[(
    'ifAction', '|i1'), ('ifDocu', '|i1'), ('ifComedy', '|i1')])
print(test[['ifAction', 'ifDocu']])
test['ifAction'][0] = 1
test['ifDocu'][0] = 1
print(test[['ifAction', 'ifDocu']][0])
test['ifAction'][0:10] = 1
test['ifDocu'][0:10] = 1
print(test[['ifAction', 'ifDocu']])
Python Numpy Structured Array (recarray) assigning values into slices