When a list is converted to a string by a join, it is a type recognition error, so use the following code to cast it
test=''.join(str(i) for i in data_positionAdvantage)
Read More:
- Type error: sequence item 0: expected STR instance, int found
- The reason and solution of the error of join function: sequence item 0: expected STR instance, int found
- RuntimeError: expected scalar type Double but found Float
- RuntimeError: Found dtype Double but expected Float”
- Solve the runtimeerror in RNN: expected scalar type long but found float error
- Successfully solved the problem of “runtimee” in RESNET dataset classification rror:expected scalar type Long but found Float”
- [Solved] RuntimeError: Expected object of scalar type Float but got scalar type Double for argument #2 ‘mat1‘
- C# Member XXX cannot be accessed with an instance with an instance reference;qualify it with a type
- Expected indentation of 6 spaces but found 10
- Err: error parsing query: found name, expected identifier, string
- Python: How to Fix “Ord() expected string of length 1, but int found”
- error Expected indentation of 2 spaces but found 8
- Pychar appears“ PEP:8 expected 2 blank lines ,found 1″
- Can’t multiply sequence by non int of type ‘float’
- Python: Understanding__ str__
- An error was reported on the command line of Vue when it first wrote a small project: expected indentation of 4 spaces but found 6
- [Solved] Scala signature package has wrong version expected: 5.0 found: 5.2 in package.class
- typeerror:the josn object must be str,bytes or byteearray,not ‘dict‘
- “Typeerror: List indexes must be integers or slices, not STR” about error reporting solutions
- C++:error C2228: left of ‘.str’ must have class/struct/union