Cudf: [QST]How to display more rows by setting?

Created on 15 Apr 2019  路  1Comment  路  Source: rapidsai/cudf

What is your question?
I tried set_options as pandas to show more rows?
But it's not working. Then searching some setting function to do it.
from cudf import settings settings.set_options(nrows=50)
How should set it?

cuDF (Python) question

Most helpful comment

cuDF accesses the print options under a formatting dict.

In the call to set_options, pass a formatting dict with the desired key-value pairs. Additionally, that call returns the settings object in the local context so your print should be within its scope. Ex:

from cudf.settings import set_options

def test_print():
    df = ...
    with set_options(formatting={'nrows': 50}):
        print(df)

>All comments

cuDF accesses the print options under a formatting dict.

In the call to set_options, pass a formatting dict with the desired key-value pairs. Additionally, that call returns the settings object in the local context so your print should be within its scope. Ex:

from cudf.settings import set_options

def test_print():
    df = ...
    with set_options(formatting={'nrows': 50}):
        print(df)
Was this page helpful?
0 / 5 - 0 ratings