1
+ import pli from "./internals/polars_internal" ;
2
+
1
3
/**
2
4
* Configure polars; offers options for table formatting and more.
3
5
*/
@@ -6,12 +8,38 @@ export interface Config {
6
8
setUtf8Tables ( ) : Config ;
7
9
/** Use ascii characters to print tables */
8
10
setAsciiTables ( ) : Config ;
11
+ setAsciiTables ( active : boolean ) : Config ;
9
12
/** Set the number of character used to draw the table */
10
13
setTblWidthChars ( width : number ) : Config ;
11
14
/** Set the number of rows used to print tables */
12
15
setTblRows ( n : number ) : Config ;
13
16
/** Set the number of columns used to print tables */
14
17
setTblCols ( n : number ) : Config ;
18
+
19
+ // set_auto_structify
20
+ // set_decimal_separator
21
+ // set_engine_affinity
22
+ // set_float_precision
23
+ // set_fmt_float
24
+ // set_fmt_str_lengths
25
+ // set_fmt_table_cell_list_len
26
+ // set_streaming_chunk_size
27
+ // set_tbl_cell_alignment
28
+ // set_tbl_cell_numeric_alignment
29
+ // set_tbl_cols
30
+ // set_tbl_column_data_type_inline
31
+ // set_tbl_dataframe_shape_below
32
+ // set_tbl_formatting
33
+ // set_tbl_hide_column_data_types
34
+ // set_tbl_hide_column_names
35
+ // set_tbl_hide_dataframe_shape
36
+ // set_tbl_hide_dtype_separator
37
+ // set_tbl_rows
38
+ // set_tbl_width_chars
39
+ // set_thousands_separator
40
+ // set_trim_decimal_zeros
41
+ // set_verbose
42
+
15
43
}
16
44
17
45
/**
@@ -22,8 +50,8 @@ export const Config: Config = {
22
50
process . env [ "POLARS_FMT_NO_UTF8" ] = undefined ;
23
51
return this ;
24
52
} ,
25
- setAsciiTables ( ) {
26
- process . env [ "POLARS_FMT_NO_UTF8" ] = "1" ;
53
+ setAsciiTables ( active ?: boolean ) {
54
+ pli . setAsciiTables ( active ) ;
27
55
return this ;
28
56
} ,
29
57
setTblWidthChars ( width ) {
0 commit comments