I am working with an excel file which I read into python as a pandas dataframe. One of the columns contains responses of how many hours a person slept. A sample column is as follows:
df['Sleep'] = [1, 2, 3, 'Blank', 4, 'Blank', '5`1/2', '`3/4']
My objective is to clean this data and get it all into a single datatype with NaN for Blanks. The blanks were taken care of using:
df['Sleep'] = df.['Sleep'].replace('Blank',np.nan)
My question is how can I convert something like 5`1/2 to 5.5? All fractions in the dataset start with the backtick symbol.