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

Can i make Signals from time series data which datatype =string? #1028

Open
darlingbud opened this issue May 25, 2024 · 1 comment
Open

Can i make Signals from time series data which datatype =string? #1028

darlingbud opened this issue May 25, 2024 · 1 comment

Comments

@darlingbud
Copy link

Python version

Please run the following snippet and write the output here

('python=3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:34:57) '
'[MSC v.1936 64 bit (AMD64)]')
'os=Windows-10-10.0.22621-SP0'
'numpy=1.26.4'
'asammdf=7.4.1'

Code

MDF version

MDF=4.0

Code snippet

please write here the code snippet that triggers the error

Traceback

please write here the error traceback

Description

Thank you working , I have some question.
I want read some time series data from '.CSV' file and turn to MDF data , then save the data as MDF file.
I use pandas to read CSV file and turn the time series to Signals, then make MDF from the Signals.
I learn the document example 'Working with Signal',and imitate the code , It works when the datatype=' float' or 'int' .
But if the datatype = 'string', Can I make the time series data to Signal and make MDF file ?

@danielhrisca
Copy link
Owner

Have a look here

encoding="latin-1",

you need to convert to bytes series and provide the encoding to the Signal object

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