python-tabulate
python-tabulate copied to clipboard
Fix separating line detection with ndarray values
This code:
import numpy as np
from tabulate import tabulate
data = [[np.ones(1)]]
print(tabulate(data))
Throws a FutureWarning or a ValueError due to the comparison with SEPARATING_LINE.
Fixes https://github.com/astanin/python-tabulate/issues/287
Can this PR be merged to master?