What is the best way to create a zero-filled pandas data frame of a given size?
I have used:
zero_data = np.zeros(shape=(len(data),len(feature_list)
You can try this:
d = pd.DataFrame(0, index=np.arange(len(data)), columns=feature_list)