I have a list of string elements, having around 17k elements. I have to create new columns in a dataframe having integer 0 as all their elements and the columns should have the names of the elements present in the list.
How do i do this?
Example list
['V1045','71752','31231']
Format required:
ID V1045 71752 31231
1 0 0 0
2 0 0 0
3 0 0 0
4 0 0 0
The dataframe has around 700,000 rows.