进行轨迹数据清洗时报错 #16
Unanswered
Murphy666-code
asked this question in
Q&A
Replies: 1 comment 7 replies
-
这个是小概率BUG,等0.3.15发版,就今天 |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
D:\Anaconda\envs\jiaotong\python.exe "C:\Users\Sha mofei\PycharmProjects\pythonProject\数据读取\gpt坐标系转换.py"
Traceback (most recent call last):
File "C:\Users\Sha mofei\PycharmProjects\pythonProject\数据读取\gpt坐标系转换.py", line 27, in
process_df = tp.trajectory_data(_type='df')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Sha mofei\AppData\Roaming\Python\Python312\site-packages\gotrackit\gps\LocGps.py", line 732, in trajectory_data
export_trajectory = pd.merge(export_trajectory, self.__user_gps_info,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Sha mofei\AppData\Roaming\Python\Python312\site-packages\pandas\core\reshape\merge.py", line 184, in merge
return op.get_result(copy=copy)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Sha mofei\AppData\Roaming\Python\Python312\site-packages\pandas\core\reshape\merge.py", line 886, in get_result
join_index, left_indexer, right_indexer = self._get_join_info()
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Sha mofei\AppData\Roaming\Python\Python312\site-packages\pandas\core\reshape\merge.py", line 1151, in _get_join_info
(left_indexer, right_indexer) = self._get_join_indexers()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Sha mofei\AppData\Roaming\Python\Python312\site-packages\pandas\core\reshape\merge.py", line 1125, in _get_join_indexers
return get_join_indexers(
^^^^^^^^^^^^^^^^^^
File "C:\Users\Sha mofei\AppData\Roaming\Python\Python312\site-packages\pandas\core\reshape\merge.py", line 1740, in get_join_indexers
zipped = zip(*mapped)
^^^^^^^^^^^^
File "C:\Users\Sha mofei\AppData\Roaming\Python\Python312\site-packages\pandas\core\reshape\merge.py", line 1737, in
_factorize_keys(left_keys[n], right_keys[n], sort=sort)
File "C:\Users\Sha mofei\AppData\Roaming\Python\Python312\site-packages\pandas\core\reshape\merge.py", line 2561, in _factorize_keys
llab = rizer.factorize(lk) # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^
File "pandas\_libs\hashtable_class_helper.pxi", line 3045, in pandas._libs.hashtable.Int64Factorizer.factorize
ValueError: Buffer dtype mismatch, expected 'const int64_t' but got 'int'
Process finished with exit code 1
如何解决
Beta Was this translation helpful? Give feedback.
All reactions