Traceback (the most recent call last) :
The File "& lt; Ipython - input - 3 - b765de43f107 & gt;" , the line 1, the in & lt; module>
Runfile (' C:/Users/bohemianwcx/Desktop/01 daily (2) p y ', wdir='C:/Users/bohemianwcx/Desktop)
The File "C: \ Users \ bohemianwcx \ Anaconda3 \ lib \ site - packages \ spyder_kernels \ customize \ spydercustomize py", line 668, in runfile
Execfile (filename, namespace)
The File "C: \ Users \ bohemianwcx \ Anaconda3 \ lib \ site - packages \ spyder_kernels \ customize \ spydercustomize py", line 108, in execfile
Exec (the compile (f.r ead (), filename, 'the exec'), the namespace)
File "C:/Users/bohemianwcx/Desktop/01 daily (2). Py", line 392, in & lt; module>
net_value=https://bbs.csdn.net/topics/float (amount_data [(amount_data iloc [:, 1)=='accumulative total net value of unit:')]. The iloc [0, 2])
The File "C: \ Users \ bohemianwcx \ Anaconda3 \ lib \ site - packages, pandas, core, indexing. Py", line 1472, in the __getitem__
Return the self. _getitem_tuple (key)
The File "C: \ Users \ bohemianwcx \ Anaconda3 \ lib \ site - packages, pandas, core, indexing. Py", line 2013, in _getitem_tuple
Self. _has_valid_tuple (tup)
The File "C: \ Users \ bohemianwcx \ Anaconda3 \ lib \ site - packages, pandas, core, indexing. Py", line 222, in _has_valid_tuple
Self. _validate_key (k, I)
The File "C: \ Users \ bohemianwcx \ Anaconda3 \ lib \ site - packages, pandas, core, indexing. Py", line 1957, in _validate_key
Self. _validate_integer (key, axis)
The File "C: \ Users \ bohemianwcx \ Anaconda3 \ lib \ site - packages, pandas, core, indexing. Py", line 2009, in _validate_integer
Raise IndexError (" single positional indexer is the out - of - bounds ")
IndexError: single positional indexer is the out - of - bounds
CodePudding user response:
Amount_data inside is a few lines of a few columns, seems to be the index of crossing the line,CodePudding user response: