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

Ignoring ENV["LINES"] in 1.4.x #3203

Closed
gugatr0n1c opened this issue Oct 21, 2022 · 3 comments
Closed

Ignoring ENV["LINES"] in 1.4.x #3203

gugatr0n1c opened this issue Oct 21, 2022 · 3 comments

Comments

@gugatr0n1c
Copy link

Hello,

working with Julia 1.8.2 and DataFrames 1.4.1 with jupyter ntb.
When I set ie:

ENV["LINES"] = 500
DataFrames ignore this setting and start to omitted rows from printing, even with ie 50 rows.

Is this bug? Is there any workaround? Thx

@bkamins
Copy link
Member

bkamins commented Oct 21, 2022

The recommendation to set ENV["LINES"] is outated. Where have you found it? (so that we can clean it up and remove). The current rules how many lines should be printed are given in DataFrames.jl manual: https://dataframes.juliadata.org/stable/man/getting_started/#Installation

Quoting:

By default DataFrames.jl limits the number of rows and columns when displaying a data frame in a Jupyter Notebook to 25 and 100, respectively. You can override this behavior by changing the values of the ENV["DATAFRAMES_COLUMNS"] and ENV["DATAFRAMES_ROWS"] variables to hold the maximum number of columns and rows of the output. All columns or rows will be printed if those numbers are equal or lower than 0.

@bkamins bkamins closed this as completed Oct 21, 2022
@gugatr0n1c
Copy link
Author

I just use it for "ages" and somehow googled it then before. Now cannot find it anymore. Thank you very much for this right notation. @bkamins

@bkamins
Copy link
Member

bkamins commented Oct 22, 2022

In general - we believe that what we have now is better:

  1. by default more columns are printed (so less often one needs to change this option)
  2. user specifies how many columns to show (not how many characters to show) - which I believe is more a useful thing user would want to pass.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants