Files
DB-GPT/dbgpt/util/pd_utils.py
2023-12-08 14:45:59 +08:00

7 lines
229 B
Python

def csv_colunm_foramt(val):
if str(val).find("$") >= 0:
return float(val.replace("$", "").replace(",", ""))
if str(val).find("¥") >= 0:
return float(val.replace("¥", "").replace(",", ""))
return val