I want to open the csv file and reverse it while I read the code, replace the date with the consecutive numbers and leave it there.
def s(a, b):
try:
if a==str(userInput) and b==int(userInput):
for line in reversed(list(open("AAPL.csv"))):
b=[0]
a=[]
for bin line:
count=1
b= count
count+=1
a=[]
a=['open', 'high', 'low', 'close', 'volume', 'adj_close']
a.lower()
except ValueError:
pass
return a, b
def main():
pass
I get this error:
Traceback (most recent call last):File "<pyshell#4>", line 1, in <module>test_date()
TypeError: test_date() missing 2 required positional arguments: 'col' and 'day'