Suppose I have a list of data. For eg [1,2,3,4,5]
and I have 1704
rows in my DataFrame. Now I want to add new column with this values only but it should be repeated till the last row as shown below:
1
2
3
4
5
1
2
3
4
5
..
and so on till the last record. I tried df['New Column']=pd.Series([1,2,3,4,5])
but it inserts record only in first 5 rows but I want this series to be repeated till the last. I referred many posts on SO but didn't found any relevant post. I am a newbie to pandas framework. Please help me with this. Thanks in advance.