I have a list containing strings, and I am planning to create a dataframe by using loops. May be the below example will help in better understanding:
s=["first","second","third"]
a=s[0]
for i in range(1,len(s)):
print(i)
print(s[i])
a=a+s[i]
#########
print(a)
'first;second;third'
## Creating dataframe####
d=pd.DataFrame()
d["c"]=1
d["text"]=a
This gives me a empty dataframe.
Output expected as :
c text
1 first;second;third