DataFrame.to_string

DataFrame.to_string(buf=None, columns=None, col_space=None, header=True, index=True, na_rep='NaN', formatters=None, float_format=None, sparsify=None, index_names=True, justify=None, max_rows=None, max_cols=None, show_dimensions=False, decimal='.', line_width=None)[source]

Render a DataFrame to a console-friendly tabular output.

Follows pandas implementation except when max_rows=None. In this scenario, we set max_rows=60 to avoid accidentally dumping an entire index. This can be overridden by explicitly setting max_rows.

See Also

:pandas_api_docs:`pandas.DataFrame.to_string`