We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db98023 commit f545433Copy full SHA for f545433
tabulate.py
@@ -610,16 +610,8 @@ def _isnumber(string):
610
False
611
>>> _isnumber("inf")
612
True
613
- >>> _isnumber("1,234.56")
614
- True
615
- >>> _isnumber("1,234,578.0")
616
617
"""
618
- if isinstance(string, (_text_type)) and "," in string and (
619
- _isconvertible(float, string.replace(",",""))
620
- ):
621
- return True
622
- elif not _isconvertible(float, string):
+ if not _isconvertible(float, string):
623
return False
624
elif isinstance(string, (_text_type, _binary_type)) and (
625
math.isinf(float(string)) or math.isnan(float(string))
0 commit comments