astanin / python-tabulate

Pretty-print tabular data in Python, a library and a command-line utility. Repository migrated from bitbucket.org/astanin/python-tabulate.
https://pypi.org/project/tabulate/
MIT License
2.1k stars 163 forks source link

numpy.datetime64[ns] is wrongly formatted as float #251

Open zhihanyue opened 1 year ago

zhihanyue commented 1 year ago

To reproduce:

import tabulate
import numpy as np
print(tabulate.tabulate([[ np.datetime64('2022-10-05', 'ns') ]]))

Out:

-----------
1.66493e+18
-----------