I have a file named df that looks like this:
Size ID File
500 TB A 200 TB
200 TB B 100 TB
600 TB C 300 TB
The numerical value along with the text, which is always 'TB'
, are within one column. How would I transform this and remove the 'TB' text from both columns to give me the desired output of:
Size ID File
500 A 200
200 B 100
600 C 300
This is what I am doing:
import numpy as np
import pandas as pd
df = df[df[","] > ,]
I am still researching this. Any insight will be helpful.