python-tabulate icon indicating copy to clipboard operation
python-tabulate copied to clipboard

Fix separating line detection with ndarray values

Open alugowski opened this issue 2 years ago • 1 comments

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

alugowski avatar Aug 28 '23 06:08 alugowski

Can this PR be merged to master?

georkap avatar Jul 18 '24 09:07 georkap