I have a list of integers x
and I am trying to create a new column to an existing dataframe that has each of the x[0] ... x[1345]
in the appropriate place.
This is what I did:
i = 0
while i < len(x):
df['Paystrings'] = x[i]
i = i + 1
df.head()
But I only get this:
Which is just the last element of x