python 學習筆記 正則表達式提取數據中的數字以及圖表上標識數值

python 正則表達式提取數據中的數字以及圖表上標識數值 先自定義提取數字函數 import re def delword(word): num = float(re.sub(r'[\u4e00-\u9fff]*\/*[\u4e00-\u9fff]','',word)) return num 將函數應用到dataframe中 pd.DataFrame['...'] =pd.Dat
相關文章
相關標籤/搜索