I just want to get rid of characters (or whatever you want to call it)that has ".xxxxx"
| Gene_ID |
|---|
| ENSG00000000003.14 |
| ENSG00000000005.5 |
| ERCC-00164 |
| ENSG00000002586.18_PAR_Y |
| ENSG00000054803.3 |
| ERCC-00012 |
| ENSG00000284332.1 |
So this is how I want it to look like:
| Gene_ID |
|---|
| ENSG00000000003 |
| ENSG00000000005 |
| ERCC-00164 |
| ENSG00000002586 |
| ENSG00000054803 |
| ERCC-00012 |
| ENSG00000284332 |
This is what I have tried:
df['Gene_ID'].str.replace('.',''))
but when I do that it only gets rid of the decimal not the characters that comes after the decimal point.
Note: the actual column is much longer than what I am showing on stack which has all that ".xxxx"