I have a column named Rate like below. All I want to do is to create a new column Rate_New that only extract the number part from Rate, which is 0.25. How to do that? Thanks!!
import pandas as pd
df = pd.DataFrame({'Rate':['$0.25/Wh', '$0.25/Wh', '$0.25/Wh', '$0.25/Wh']})
df