cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
NickelNorbert
Level II

Import CSV file and clean data by removing letters

Hi JMP Community, 
I struggle with a csv import. Unfortunatly I get only that weird csv format from my datasource. At the end I want to use actual voltage and actual current and the time as steady values. 

Can you please give me some hints how to import the csv correctly? 
Thanks in advance

Norbert

2 ACCEPTED SOLUTIONS

Accepted Solutions
jthi
Super User

Re: Import CSV file and clean data by removing letters

Use Open with Preview

jthi_0-1740492290452.png

Then as you seem to have units in the columns, loop over each column+row and clean them and change "," to "." if needed

jthi_1-1740492338890.png

For removing characters, you can for example try with Recode

jthi_2-1740492398638.png

 

-Jarmo

View solution in original post

Re: Import CSV file and clean data by removing letters

Hi @NickelNorbert ,

 

Just to add on to @jthi 's post, I've put together a Workflow Builder file for you to run on any file type, this works so long as the file structure is the same (same column titles, layout from export) which it sounds like you have.

 

Essentially I've used the text file import (as @jthi has detailed), brought in the files then recoded using 'Extract Segment' to take the values before the appearance of 'V' and 'A' in your columns, then converted all the character columns to numeric.

 

I did a few minor changes with JSL to get the Workflow to work on new files, if you're interested in that I can detail that more on this post.

 

Thanks,

Ben

 

“All models are wrong, but some are useful”

View solution in original post

4 REPLIES 4
jthi
Super User

Re: Import CSV file and clean data by removing letters

Use Open with Preview

jthi_0-1740492290452.png

Then as you seem to have units in the columns, loop over each column+row and clean them and change "," to "." if needed

jthi_1-1740492338890.png

For removing characters, you can for example try with Recode

jthi_2-1740492398638.png

 

-Jarmo
NickelNorbert
Level II

Re: Import CSV file and clean data by removing letters

Thank you very much for the great and detailed help. 
Norbert

Re: Import CSV file and clean data by removing letters

Hi @NickelNorbert ,

 

Just to add on to @jthi 's post, I've put together a Workflow Builder file for you to run on any file type, this works so long as the file structure is the same (same column titles, layout from export) which it sounds like you have.

 

Essentially I've used the text file import (as @jthi has detailed), brought in the files then recoded using 'Extract Segment' to take the values before the appearance of 'V' and 'A' in your columns, then converted all the character columns to numeric.

 

I did a few minor changes with JSL to get the Workflow to work on new files, if you're interested in that I can detail that more on this post.

 

Thanks,

Ben

 

“All models are wrong, but some are useful”
NickelNorbert
Level II

Re: Import CSV file and clean data by removing letters

Thanks a lot. Very apreciate your work. 

Recommended Articles