Spaces:
Sleeping
Sleeping
Delete isNumber.py
Browse files- isNumber.py +0 -9
isNumber.py
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
# Function to check if the string is a number
|
2 |
-
def is_number(x):
|
3 |
-
if type(x) == str:
|
4 |
-
x = x.replace(',', '')
|
5 |
-
try:
|
6 |
-
float(x)
|
7 |
-
except:
|
8 |
-
return False
|
9 |
-
return True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|