How to create log files and change Jetson's power using python (Jetson AGX Xavier)

hello giltech,

you may simply process the data with tr options, and saving the file as csv format.
here’s an example,
//to convert spaces as a comma
$ cat tegrastats.txt | tr -s ' ' ',' > tmp.txt

//to convert "%@" as a comma
$ cat tmp.txt | tr -s "%@" ',' > output.csv

try opening output.csv to review the results, and you may add more process by your own.