Skip to content

Config ​

Namespace: Polars.FSharp

Config for Polars.FSharp

Module Functions ​

Config.asciiTables ​

Use ASCII characters to display table outlines. Set False to revert to the standard UTF8_FULL_CONDENSED formatting style.

fsharp
Config.asciiTables : active: Active -> unitVar0: unit -> unit

Parameters

NameTypeDescription
activeActive-
unitVar0unit-

Config.clientEvaluationPolicy ​

Sets the client-side evaluation policy for operations or expressions that cannot be pushed down to the native Polars engine.

fsharp
Config.clientEvaluationPolicy : policy: ClientEvaluationPolicy -> unitVar0: unit -> unit

Parameters

NameTypeDescription
policyClientEvaluationPolicy-
unitVar0unit-

Config.decimalSeparator ​

Set the decimal separator character.

fsharp
Config.decimalSeparator : separator: CharSet -> unitVar0: unit -> unit

Parameters

NameTypeDescription
separatorCharSet-
unitVar0unit-

Config.deltaMaxRetries ​

Set the maximum Retires for Delta Table operations.

fsharp
Config.deltaMaxRetries : retries: NumSet -> unitVar0: unit -> unit

Parameters

NameTypeDescription
retriesNumSet-
unitVar0unit-

Config.engineAffinity ​

Set which engine to use by default.

fsharp
Config.engineAffinity : engine: Engine -> unitVar0: unit -> unit

Parameters

NameTypeDescription
engineEngine-
unitVar0unit-

Config.floatPrecision ​

Control the number of decimal places displayed for floating point values.

fsharp
Config.floatPrecision : precision: NumSet -> unitVar0: unit -> unit

Parameters

NameTypeDescription
precisionNumSet-
unitVar0unit-

Config.formatFloat ​

Control how floating point values are displayed.

fsharp
Config.formatFloat : format: FloatFormat -> unitVar0: unit -> unit

Parameters

NameTypeDescription
formatFloatFormat-
unitVar0unit-

Config.formatStringLength ​

Set the number of characters used to display string values.

fsharp
Config.formatStringLength : n: NumSet -> unitVar0: unit -> unit

Parameters

NameTypeDescription
nNumSet-
unitVar0unit-

Config.formatTableCellListLength ​

Set the number of elements to display for List values.

fsharp
Config.formatTableCellListLength : n: NumSet -> unitVar0: unit -> unit

Parameters

NameTypeDescription
nNumSet-
unitVar0unit-

Config.getOr ​

Retrieves the current configuration value for the specified key, or returns a default value if the key is not found.

fsharp
Config.getOr : defaultValue: string -> key: string -> string

Parameters

NameTypeDescription
defaultValuestring-
keystring-

Config.load ​

Load (and set) previously saved Config options from a JSON string.Only already set parameter will be recorded.

fsharp
Config.load : cfgJson: string -> unit

Parameters

NameTypeDescription
cfgJsonstring-

Config.loadFromFile ​

Load (and set) previously saved Config options from file.

fsharp
Config.loadFromFile : path: string -> unit

Parameters

NameTypeDescription
pathstring-

Config.queryCacheCapacity ​

Set the maximum capacity for the LINQ Query Plan Cache.

fsharp
Config.queryCacheCapacity : capacity: NumSet -> unitVar0: unit -> unit

Parameters

NameTypeDescription
capacityNumSet-
unitVar0unit-

Config.queryCacheEnabled ​

Enable or disable the LINQ Query Plan Cache globally.

fsharp
Config.queryCacheEnabled : active: Active -> unitVar0: unit -> unit

Parameters

NameTypeDescription
activeActive-
unitVar0unit-

Config.restoreDefaults ​

Reset all polars Config settings to their default state.

fsharp
Config.restoreDefaults : unit -> unit

Config.save ​

Save the current set of Config options as a JSON string.

fsharp
Config.save : scope: ConfigScope -> string

Parameters

NameTypeDescription
scopeConfigScope-

Config.saveToFile ​

Save the current set of Config options as a JSON file.

fsharp
Config.saveToFile : path: string -> unit

Parameters

NameTypeDescription
pathstring-

Config.set ​

Inject Environment var to Rust

fsharp
Config.set : key: string -> value: string -> unit

Parameters

NameTypeDescription
keystring-
valuestring-

Config.setMany ​

Inject Environment vars to Rust from a sequence of tuples

fsharp
Config.setMany : variables: seq<(string * string)> -> unit

Parameters

NameTypeDescription
variablesseq<(string * string)>-

Config.setMap ​

Inject Environment vars to Rust from KeyValuePair sequence

fsharp
Config.setMap : variables: Map<string, string> -> unit

Parameters

NameTypeDescription
variablesMap<string, string>-

Config.status ​

Show the current state of all Config variables in the environment as a dict.

fsharp
Config.status : scope: ConfigScope -> Dictionary<string, string>

Parameters

NameTypeDescription
scopeConfigScope-

Config.streamingChunkSize ​

Overwrite chunk size used in streaming engine.

fsharp
Config.streamingChunkSize : size: ChunkSet -> unitVar0: unit -> unit

Parameters

NameTypeDescription
sizeChunkSet-
unitVar0unit-

Config.tableCellAlignment ​

Set table cell alignment.

fsharp
Config.tableCellAlignment : format: Alignment -> unitVar0: unit -> unit

Parameters

NameTypeDescription
formatAlignment-
unitVar0unit-

Config.tableCellNumericAlignment ​

Set table cell alignment for numeric columns.

fsharp
Config.tableCellNumericAlignment : format: Alignment -> unitVar0: unit -> unit

Parameters

NameTypeDescription
formatAlignment-
unitVar0unit-

Config.tableCols ​

Set the number of columns that are visible when displaying tables.

fsharp
Config.tableCols : n: NumSet -> unitVar0: unit -> unit

Parameters

NameTypeDescription
nNumSet-
unitVar0unit-

Config.tableColumnDataTypeInline ​

Display the data type next to the column name (to the right, in parentheses).

fsharp
Config.tableColumnDataTypeInline : active: Active -> unitVar0: unit -> unit

Parameters

NameTypeDescription
activeActive-
unitVar0unit-

Config.tableDataFrameShapeBelow ​

Print the DataFrame shape information below the data when displaying tables.

fsharp
Config.tableDataFrameShapeBelow : active: Active -> unitVar0: unit -> unit

Parameters

NameTypeDescription
activeActive-
unitVar0unit-

Config.tableFormatting ​

Sets the text/ASCII formatting style for outputting DataFrames.

fsharp
Config.tableFormatting : format: TableFormatting -> roundedCorners: Active -> unitVar0: unit -> unit

Parameters

NameTypeDescription
formatTableFormatting-
roundedCornersActive-
unitVar0unit-

Config.tableHideColumnDataTypes ​

Hide table column data types (i64, f64, str etc.).

fsharp
Config.tableHideColumnDataTypes : active: Active -> unitVar0: unit -> unit

Parameters

NameTypeDescription
activeActive-
unitVar0unit-

Config.tableHideColumnNames ​

Hide table column names.

fsharp
Config.tableHideColumnNames : active: Active -> unitVar0: unit -> unit

Parameters

NameTypeDescription
activeActive-
unitVar0unit-

Config.tableHideDataFrameShape ​

Hide the DataFrame shape information when displaying tables.

fsharp
Config.tableHideDataFrameShape : active: Active -> unitVar0: unit -> unit

Parameters

NameTypeDescription
activeActive-
unitVar0unit-

Config.tableHideDataTypeSeparator ​

Hide the ‘—’ separator displayed between the column names and column types.

fsharp
Config.tableHideDataTypeSeparator : active: Active -> unitVar0: unit -> unit

Parameters

NameTypeDescription
activeActive-
unitVar0unit-

Config.tableRows ​

Set the max number of rows used to draw the table (both Dataframe and Series).

fsharp
Config.tableRows : n: NumSet -> unitVar0: unit -> unit

Parameters

NameTypeDescription
nNumSet-
unitVar0unit-

Config.tableWidthChars ​

Set the maximum width of a table in characters.

fsharp
Config.tableWidthChars : width: NumSet -> unitVar0: unit -> unit

Parameters

NameTypeDescription
widthNumSet-
unitVar0unit-

Config.thousandsSeparator ​

Configures the thousands separator with a specific single character.

fsharp
Config.thousandsSeparator : separator: CharSet -> unitVar0: unit -> unit

Parameters

NameTypeDescription
separatorCharSet-
unitVar0unit-

Config.trimDecimalZeros ​

Strip trailing zeros from Decimal data type values.

fsharp
Config.trimDecimalZeros : active: Active -> unitVar0: unit -> unit

Parameters

NameTypeDescription
activeActive-
unitVar0unit-

Config.tryGet ​

Safely retrieves the current configuration value for the specified key. Matches keys in a case-insensitive manner.

fsharp
Config.tryGet : key: string -> string option

Parameters

NameTypeDescription
keystring-

Config.verbose ​

Configures whether Polars should run in verbose mode, printing query profiles and optimization decisions.

fsharp
Config.verbose : active: Active -> unitVar0: unit -> unit

Parameters

NameTypeDescription
activeActive-
unitVar0unit-

Config.withConfig ​

Executes a function within a temporary configuration scope. Captures the current configuration snapshot, applies the provided configuration adjustments, runs the operation, and guarantees restoration of the previous state when finished.

fsharp
Config.withConfig : actions: (unit -> unit) list -> f: (unit -> 'T) -> 'T

Parameters

NameTypeDescription
actions(unit -> unit) listA sequence of configuration modification actions (unit -> unit).
f(unit -> 'T)The operation to execute within this configuration scope.

Released under the MIT License. Powered by the Polars Rust core & Apache Arrow.