File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ export default class DataFrame extends NDframe implements DataFrameInterface {
415415 if ( colLen > maxColToDisplayInConsole ) {
416416 //truncate displayed columns to fit in the console
417417 let firstFourcolNames = this . columns . slice ( 0 , 4 ) ;
418- let lastThreecolNames = this . columns . slice ( colLen - 4 ) ;
418+ let lastThreecolNames = this . columns . slice ( colLen - 3 ) ;
419419 //join columns with truncate ellipse in the middle
420420 header = [ "" , ...firstFourcolNames , "..." , ...lastThreecolNames ] ;
421421
@@ -432,7 +432,7 @@ export default class DataFrame extends NDframe implements DataFrameInterface {
432432
433433 let dfSubset2 = this . iloc ( {
434434 rows : [ `0:${ maxRow } ` ] ,
435- columns : [ `${ colLen - 4 } :` ]
435+ columns : [ `${ colLen - 3 } :` ]
436436 } ) ;
437437
438438 subIdx = this . index . slice ( 0 , maxRow ) ;
@@ -441,7 +441,7 @@ export default class DataFrame extends NDframe implements DataFrameInterface {
441441
442442 } else {
443443 let dfSubset1 = this . iloc ( { columns : [ "0:4" ] } ) ;
444- let dfSubset2 = this . iloc ( { columns : [ `${ colLen - 4 } :` ] } ) ;
444+ let dfSubset2 = this . iloc ( { columns : [ `${ colLen - 3 } :` ] } ) ;
445445
446446 subIdx = this . index . slice ( 0 , maxRow ) ;
447447 firstHalfValues = dfSubset1 . values as ArrayType2D
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export default class Configs {
3535 } = {
3636 tableDisplayConfig : { } ,
3737 tableMaxRow : 10 ,
38- tableMaxColInConsole : 21 ,
38+ tableMaxColInConsole : 10 ,
3939 dtypeTestLim : 10 ,
4040 lowMemoryMode : false ,
4141 ...options
You can’t perform that action at this time.
0 commit comments