Published
- 1 min read
pandas create dataframe of ones
The solution for this is noted below
pandas create dataframe of ones
Solution
pd.DataFrame(1, index=np.arange(len(data)), columns=feature_list)
Try other methods by searching on the site. That is if this doesn’t work