Skip to content

pandasx / options

Variable: options ​

const options: object

Defined in: src/core/format.ts:9

Display options, like pd.options.display (mutable; see setOption / optionContext).

Type Declaration ​

NameTypeDefault valueDescriptionDefined in
chopThresholdnumber | null-Floats smaller than this (in absolute value) show as 0.src/core/format.ts:25
colheaderJustify"left" | "right"-Alignment of column headers.src/core/format.ts:29
floatFormat((v) => string) | null-Custom float formatter.src/core/format.ts:23
maxColumnsnumber20Columns shown before truncating (0 = no limit besides width).src/core/format.ts:15
maxColwidthnumber50Longest cell text before it is cut with '...'.src/core/format.ts:21
maxRowsnumber60Rows shown before truncating (pandas display.max_rows).src/core/format.ts:11
minRowsnumber10Rows shown when truncated.src/core/format.ts:13
precisionnumber6Decimal places for floats.src/core/format.ts:17
showDimensionsboolean | "truncate"-Show '[n rows x m columns]': only when truncated ('truncate'), always (true) or never (false).src/core/format.ts:27
widthnumber80Line width; wider frames hide middle columns.src/core/format.ts:19

Released under the MIT License.