I have a CSV file which contains coordinates in Degree Minute Seconds format. But I can't load that CSV file using read_csv
eg:
'''74° 18' 01.8963" E''' '''32° 56' 40.2788" N'''
'''76° 05' 57.9815" E''' '''31° 24' 25.0336" N'''
'''75° 02' 45.5176" E''' '''30° 25' 19.6260" N'''
'''73° 23' 12.3829" E''' '''31° 47' 47.4578" N'''
'''74° 18' 01.8963" E''' '''32° 56' 40.2788" N'''
Or
74° 18' 01.8963" E 32° 56' 40.2788" N
76° 05' 57.9815" E 31° 24' 25.0336" N
75° 02' 45.5176" E 30° 25' 19.6260" N
73° 23' 12.3829" E 31° 47' 47.4578" N
74° 18' 01.8963" E 32° 56' 40.2788" N
Anyone have any suggestions?
ERROR:
Traceback (most recent call last):
File "<ipython-input-7-5e6c73be55c1>", line 1, in <module>
pd.read_csv("test.csv")
File "C:\ProgramData\Anaconda3\envs\obspy\lib\site-packages\pandas\io\parsers.py", line 676, in parser_f
return _read(filepath_or_buffer, kwds)
File "C:\ProgramData\Anaconda3\envs\obspy\lib\site-packages\pandas\io\parsers.py", line 448, in _read
parser = TextFileReader(fp_or_buf, **kwds)
File "C:\ProgramData\Anaconda3\envs\obspy\lib\site-packages\pandas\io\parsers.py", line 880, in __init__
self._make_engine(self.engine)
File "C:\ProgramData\Anaconda3\envs\obspy\lib\site-packages\pandas\io\parsers.py", line 1114, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "C:\ProgramData\Anaconda3\envs\obspy\lib\site-packages\pandas\io\parsers.py", line 1891, in __init__
self._reader = parsers.TextReader(src, **kwds)
File "pandas\_libs\parsers.pyx", line 529, in pandas._libs.parsers.TextReader.__cinit__
File "pandas\_libs\parsers.pyx", line 749, in pandas._libs.parsers.TextReader._get_header
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf8 in position 5: invalid start byte