python

Python string replace character with regex

I’ve run into a regex problem I don’t understand. I’m trying to replace a comma in between strings with a semi-colon and it’s not working. Here’s a sample string below. I set up a regex to replace everything but the content after "seq…

Normalize Dataset in Python

So I have a dataset that I want to be normalized. The datset contains of bunch of numbers so im just going to post one line of it:
1,1,22,22,22,19,18,14,49.895756,17.775994,5.27092,0.771761,0.018632,0.006864,0.003923,0.003923,0.486903,…