I try to initialize a Boolean array with False using np.empty,
init_arr = empty(5)
init_arr.fill(False)
but I got
array([0., 0., 0., 0., 0.])
then I create a pd.Series,
dummy_ser = pd.Series(data=init_arr)
which makes it
0 0
1 0
2 0
3 0
4 0
I tried to initialize a boolean series with various length with False as its initialized values. I am wondering whats the best way to do this.
I am using Python 3.5.2 and Numpy 1.15.4.