Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List columns uses non-ascii characters in display, even when pl.Config.set_ascii_tables(True) #19821

Closed
2 tasks done
kevinli1993 opened this issue Nov 16, 2024 · 0 comments · Fixed by #19835
Closed
2 tasks done
Labels
bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars

Comments

@kevinli1993
Copy link

Checks

  • I have checked that this issue has not already been reported.
  • I have confirmed this bug exists on the latest version of Polars.

Reproducible example

>>> import polars as pl
>>> pl.Config.set_ascii_tables(True)
>>> pl.DataFrame(pl.Series("x", [list(range(100))]))
shape: (1, 1)
+--------------+
| x            |
| ---          |
| list[i64]    |
+==============+
| [0, 1, … 99] |
+--------------+

Log output

No response

Issue description

Notice that the ellipsis character is used in the list column display; could we change this to ... when set_ascii_tables=True?

Expected behavior

shape: (1, 1)
+----------------+
| x              |
| ---            |
| list[i64]      |
+================+
| [0, 1, ... 99] |
+----------------+

Installed versions

--------Version info---------
Polars:              1.13.0
Index type:          UInt32
Platform:            macOS-14.5-arm64-arm-64bit
Python:              3.12.7 (main, Oct  5 2024, 00:14:26) [Clang 15.0.0 (clang-1500.1.0.2.5)]
LTS CPU:             False

----Optional dependencies----
adbc_driver_manager  <not installed>
altair               <not installed>
cloudpickle          <not installed>
connectorx           <not installed>
deltalake            <not installed>
fastexcel            <not installed>
fsspec               <not installed>
gevent               <not installed>
great_tables         <not installed>
matplotlib           3.9.2
nest_asyncio         1.6.0
numpy                2.1.3
openpyxl             <not installed>
pandas               2.2.3
pyarrow              18.0.0
pydantic             <not installed>
pyiceberg            <not installed>
sqlalchemy           <not installed>
torch                <not installed>
xlsx2csv             <not installed>
xlsxwriter           <not installed>
@kevinli1993 kevinli1993 added bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars labels Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Awaiting prioritization by a maintainer python Related to Python Polars
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant