I have a features array that contains values of different types:
>>> features = train_df.values
>>> [x for x in features]
[True,
array([2, 0, 0, ..., 0, 0, 0]),
False,
False,
17,
1,
10,
array([0, 0, 0, ..., 0, 0, 0])]
I would like to produce a single python array that contains a concatenation of the all of the above features, i.e.
np.array([True, 2, 0, 0, ..., 0, 0, 0, False, False, 17, 1, 10, 0, 0, 0, ..., 0, 0, 0])
My goal is to train sklearn LogisticRegression with the above feature vector. What is the best way to do this in python?