BUG: to_markdown
raises ValueError
when values are np.array
s with more than one element
#59588
Closed
3 tasks done
Labels
Bug
Closing Candidate
May be closeable, needs more eyeballs
IO Data
IO issues that don't fit into a more specific label
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
When trying to convert a
Series
or aDataFrame
to markdown withnp.ndarray
s as values an error is raised.Expected Behavior
The method should print something similar to
list
s behavior:Perhaps any iterable should be converted to a list before sending to
tabulate
.Installed Versions
INSTALLED VERSIONS
commit : d9cdd2e
python : 3.10.12.final.0
python-bits : 64
OS : Linux
OS-release : 5.15.146.1-microsoft-standard-WSL2
Version : #1 SMP Thu Jan 11 04:09:03 UTC 2024
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 2.2.2
numpy : 2.0.1
tabulate : 0.9.0
The text was updated successfully, but these errors were encountered: