Tamil_ASR_Demo / isNumber.py
cdactvm's picture
Upload 13 files
cd1b576 verified
raw
history blame
280 Bytes
#!/usr/bin/env python
# coding: utf-8
# In[1]:
# Function to check if the string is a number
def is_number(x):
if type(x) == str:
x = x.replace(',', '')
try:
float(x)
except:
return False
return True
# In[ ]: