9 lines
158 B
Python
9 lines
158 B
Python
|
|
import pandas as pd
|
||
|
|
|
||
|
|
|
||
|
|
def is_number(value):
|
||
|
|
try:
|
||
|
|
pd.to_numeric(value)
|
||
|
|
return True
|
||
|
|
except (ValueError, TypeError):
|
||
|
|
return False
|