please, when use BBcode tags, use forward slash, not back slash for closing tag
also, when post errors, use error tag.
check documentation for the correct format of dtype
obviously you are not able to convert str to float. Either specify data type for all columns [obviously it doesn't work in your case) or pass a dict with column name and data type for columns you want to convert
as to your original code - remove errors=ignore in order to check what is going on and why you are not able to convert to float respective columns
also, when post errors, use error tag.
check documentation for the correct format of dtype
Quote:dtype : Type name or dict of column -> type, optional
Data type for data or columns. E.g. {‘a’: np.float64, ‘b’: np.int32, ‘c’: ‘Int64’} Use str or object together with suitable na_values settings to preserve and not interpret dtype. If converters are specified, they will be applied INSTEAD of dtype conversion.
obviously you are not able to convert str to float. Either specify data type for all columns [obviously it doesn't work in your case) or pass a dict with column name and data type for columns you want to convert
as to your original code - remove errors=ignore in order to check what is going on and why you are not able to convert to float respective columns
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs