python-tabulate
python-tabulate copied to clipboard
Update _isnumber to ensure the output string convertible to float
The numpy.datetime64[ns] was recognized as float, because numpy.datetime64[ns] is convertible to float. This PR fixes this problem.
Fix #251
While this PR may solve the issue with numpy.datetime64, it does not go far enough to also fix incorrect conversions of strings to float, e.g. "1E10"
becomes 1e+10
. See issue #266
I still think this PR can go forward, I just wanted to mention it.
Update: I discovered disable_numparse=True
which solves that issue ... never mind ...