Can someone please tell me what basic thing I am missing here.
Type: <class 'list'>
Value : ['09,10,11,12,13,14,15']
for datapoint in value:
y.append(datetime.fromtimestamp(datapoint).strftime('%I%P').lstrip('0').upper())
I want value of y should be like this-[9PM,10PM,11PM,12PM,1PM,2PM,3PM]
I am not sure why its is not converting to the value I want, if I am using above function. Can someone please suggest what I am missing here and why I am getting this error -> "AttributeError: 'dict' object has no attribute 'append'"