Hello all!
I have a variable name "thelist" which is a list of 100,000 elements. I was wondering how I can make two new lists of the average value and standard deviation from this. For example if my list is [1,2,3,4,5,6,7,8 ,9,10] then the new list would be the average of the every 5 numbers, endeing up looking like [average(1,2,3,4 ,5),average(6,7 ,8,9,10)]=[3,8]. I am very comfortable using numpy to get the average and standard deviation values. I am just having trouble breaking the initial list down. I'm not sure if this is what indexing is.
Any help would really be appreciated,
Thank YOU!
I have a variable name "thelist" which is a list of 100,000 elements. I was wondering how I can make two new lists of the average value and standard deviation from this. For example if my list is [1,2,3,4,5,6,7,8 ,9,10] then the new list would be the average of the every 5 numbers, endeing up looking like [average(1,2,3,4 ,5),average(6,7 ,8,9,10)]=[3,8]. I am very comfortable using numpy to get the average and standard deviation values. I am just having trouble breaking the initial list down. I'm not sure if this is what indexing is.
Any help would really be appreciated,
Thank YOU!
Comment