Open lewis-cooper opened 4 years ago
This issue is not related to manim.
Your CSV file has a "byte order mark" (BOM- FEFF). Don't be upset... BOM is designed to break things that should work. :-/
Just remove the first byte from your CSV. I think it is a good idea to use a good editor that does not put invisible garbage into your file.
Trying to plot some data points using sublime text and I get this error. Any help would be appreciated.
Command ran:
The error: Traceback (most recent call last): File "/Users/lewis/Documents/animation/manim/manimlib/extract_scene.py", line 155, in main scene = SceneClass(**scene_kwargs) File "/Users/lewis/Documents/animation/manim/manimlib/scene/scene.py", line 53, in init self.construct() File "coronavirus.py", line 49, in construct coords = get_coords_from_csv("coronavirus_data") File "coronavirus.py", line 13, in get_coords_from_csv coord = [float(x),float(y)] ValueError: could not convert string to float: '\ufeff1'
Many thanks :)