b = map(ct,data.as_matrix())
data = pd.DataFrame(b).fillna(0)
Traceback (most recent call last):
File "<ipython-input-47-48b397cc2c53>", line 1, in <module>
data = pd.DataFrame(b).fillna(0)
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\frame.py", line 389, in __init__
raise TypeError("data argument can't be an iterator")
TypeError: data argument can't be an iterator
Reason: Elements in a dataframe cannot be iterative.
b = map(ct,data.as_matrix())
c = list(b)
data = pd.DataFrame(c).fillna(0)
Read More:
- Solution of adding judgment error in the iterative process of Java iterator iterator
- TypeError: drop() got an unexpected keyword argument ‘columns’
- Python TypeError: ‘newline’ is an invalid keyword argument for this function
- [MySQL] [serialize] [error record] after modifying data, no data will be returned (in fact, MySQL does not support it)
- Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string.
- python got an unexpected keyword argument
- python reads csv file is an error _csv.Error: iterator should return strings, not bytes (did you open the file in text)
- TypeError: descriptor ‘__init__‘ of ‘super‘ object needs an argument
- Typeerror: write() argument must be STR, not bytes and the method of writing binary file in Python 3
- Typeerror: write() argument must be STR, not bytes and the method of writing binary file in Python 3
- [Qt] error: call to non-static member function without an object argument
- After introducing sass into Vue project, start to report error typeerror [err]_ INVALID_ ARG_ Type]: the “path” argument must be of type string
- Start react-native after updating Xcode11 and report an error: Unknown argument type ‘_attribute_’ in method -[RCTAppState getCurren
- Vs2017 reported an error. Pthread. H header file cannot be opened and cannot be found
- Using next (ITER (data. Dataloader()) to report an error stopiteration
- RuntimeError: ‘lengths’ argument should be a 1D CPU int64 tensor, but got 1D cuda:0 Long tensor
- Error lnk2038: detected “0”_ ITERATOR_ DEBUG_ The reason and solution of the unmatched item of “level”
- TypeError: Required argument ‘mat‘ (pos 2) not found
- The problem that the content extra data in the notification cannot be updated
- Solve the problem that data cannot be input in idea console