Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value error merge float64 and datetime64[ns, UTC] #18

Closed
hurbx opened this issue Jan 26, 2023 · 5 comments
Closed

Value error merge float64 and datetime64[ns, UTC] #18

hurbx opened this issue Jan 26, 2023 · 5 comments

Comments

@hurbx
Copy link

hurbx commented Jan 26, 2023

when some files are in the conversion process I get the following error I have read the documentation of the library but I can't find the error

Device: 4F0BBBD2 | Log file: /LOG/958D2219/00002501/00000001-63D2969F.MF4 [Extracted 127276 decoded frames]
Period: 2023-01-26 14:57:17.962700+00:00 - 2023-01-26 15:04:02.828300+00:00

Traceback (most recent call last):
File "C:\Users\hugoa\OneDrive\Escritorio\Telemetria\Decoder MF4\Decoder-MF4\data-processing\process_data.py", line 52, in
df_phys_join = restructure_data(df_phys=df_phys_all, res="1S", full_col_names=True)
File "C:\Users\hugoa\OneDrive\Escritorio\Telemetria\Decoder MF4\Decoder-MF4\data-processing\utils.py", line 100, in restructure_data
df_phys_join = pd.merge_ordered(
File "C:\Users\hugoa\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\reshape\merge.py", line 321, in merge_ordered
result = _merger(left, right)
File "C:\Users\hugoa\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\reshape\merge.py", line 290, in _merger
op = _OrderedMerge(
File "C:\Users\hugoa\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\reshape\merge.py", line 1623, in init
_MergeOperation.init(
File "C:\Users\hugoa\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\reshape\merge.py", line 703, in init
self._maybe_coerce_merge_keys()
File "C:\Users\hugoa\AppData\Local\Programs\Python\Python310\lib\site-packages\pandas\core\reshape\merge.py", line 1262, in _maybe_coerce_merge_keys
raise ValueError(msg)
ValueError: You are trying to merge on float64 and datetime64[ns, UTC] columns. If you wish to proceed you should use pd.concat

@MatinF
Copy link
Contributor

MatinF commented Jan 26, 2023 via email

@hurbx
Copy link
Author

hurbx commented Jan 27, 2023

Can you share the files and a full zip replicating the issue via wetransfer.com to us via our contact form?

hi martin , yeah there's no problem hope you can help me

@hurbx
Copy link
Author

hurbx commented Feb 6, 2023 via email

@MatinF
Copy link
Contributor

MatinF commented Feb 6, 2023

Hi again,

Can you send a zip file that contains the entire folder (incl. log files, DBC files, Python scripts etc) so that I can run it on my end with the same files for further troubleshooting? You can send it to us here or via contact@csselectronics.com using e.g. wetransfer.com (your link in your message has run out)

@MatinF
Copy link
Contributor

MatinF commented Mar 15, 2023

Closing this

@MatinF MatinF closed this as completed Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants