0

I would like to add the string 'NSQscores' to a list of strings (newlist).

However, when I try to add 'NSQscores' to 'newlist', the output it provides me with is 'None'.

columnlist = list(newdf.columns)
newlist = columnlist[0:87]
newlist2 = newlist.append('NSQscores')
print(newlist2)

None

I would be so grateful if anybody could give me a helping hand!

As an example:

print(newlist[1:5])

gives me:

['extra1-quantised', 'extra2-quantised', 'extra3-quantised', 'hunting-quantised']
Caledonian26
  • 727
  • 1
  • 10
  • 27

0 Answers0