I have the following textfile:
13,1980,0,1,0,0,14,0,1.1975401639938354,1
13,1981,0,2,0,0,14,1,1.853060007095337,4
13,1982,0,3,0,0,14,0,1.3444616794586182,9
13,1983,0,4,0,0,14,0,1.4332133531570435,16
13,1984,0,5,0,0,14,0,1.5681251287460327,25
13,1985,0,6,0,0,14,0,1.6998909711837769,36
13,1986,0,7,0,0,14,0,-0.7202625870704651,49
When I try to load it into Jupyter Notebook in python:
data = np.loadtxt("/filepath/wagepan.txt")
I get the following error:
ValueError: could not convert string to float: '13,1980,0,1,0,0,14,0,1.1975401639938354,1'
Does anyone have any idea how to fix this? I tried looking at other posts, but the issue was not similar.