mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-11 05:49:22 +00:00
refactor: The first refactored version for sdk release (#907)
Co-authored-by: chengfangyin2 <chengfangyin3@jd.com>
This commit is contained in:
6
dbgpt/util/pd_utils.py
Normal file
6
dbgpt/util/pd_utils.py
Normal file
@@ -0,0 +1,6 @@
|
||||
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
|
Reference in New Issue
Block a user