I am writing a python code to pull a list and give the output in a .CSV file . The code is splitting after each character instead of each name . The [Name] in the below code contains a list of names like : aeims aelog amscompatibilitytool
with open("csvtest.csv", "wb") as f:
writer = csv.writer(f,delimiter='\t', quotechar='"', quoting=csv.QUOTE_MINIMAL)
for namespace in namespaces:
writer.writerows(namespace['name'])
Expected :
aeims
aelog
amscompatibilitytool
cgr
Result I am getting in csv file :
a
e
i
m
s
a
e
l
o
g
a
m
.... so on
namespacesvar looks like?