Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
cdactvm
/
ENGLISH_ASR
like
0
Sleeping
App
Files
Files
Community
281308e
ENGLISH_ASR
/
isNumber.py
cdactvm
Upload 6 files
3b58a97
verified
about 2 months ago
raw
Copy download link
history
blame
Safe
260 Bytes
#!/usr/bin/env python
# coding: utf-8
# In[ ]:
# 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