Hopefully the incorrect code still conveys what I'm trying to do. I get a string error using enumerate (and range) b/c 'count' is interpreted as a string when I instead want it to be interpreted as an integer value. I want to create arrays with integer values from 0 to the count value. If it helps, my purpose is to create a single list of values when only the frequency of each value is given. Thanks!
import csv, sys
outputCSV = open(r"C:\Users\Out.csv")
inputCSV = open(r"C:\Users\Slope.csv")
reader = csv.reader(inputCSV, delimiter = ',')
writer = csv.writer(outputCSV, delimiter = ',')
for row in reader:
count = row[1]
countArray = enumerate(0, count) #make list of consecutive integers from 0 to value of count
while i <= max(countArray):
print row[0] #print row value as many times as there are integers in the range 0 through the max of countArray. The printed row value should have same index as the current count index.