@@ -25,7 +25,6 @@ import NDframe from "./generic";
2525import { table } from "table" ;
2626import Series from './series' ;
2727import Groupby from '../aggregators/groupby'
28- import { PlotlyLib } from "../plotting" ;
2928
3029const utils = new Utils ( ) ;
3130
@@ -416,7 +415,7 @@ export default class DataFrame extends NDframe implements DataFrameInterface {
416415 if ( colLen > maxColToDisplayInConsole ) {
417416 //truncate displayed columns to fit in the console
418417 let firstFourcolNames = this . columns . slice ( 0 , 4 ) ;
419- let lastThreecolNames = this . columns . slice ( colLen - 4 ) ;
418+ let lastThreecolNames = this . columns . slice ( colLen - 3 ) ;
420419 //join columns with truncate ellipse in the middle
421420 header = [ "" , ...firstFourcolNames , "..." , ...lastThreecolNames ] ;
422421
@@ -433,7 +432,7 @@ export default class DataFrame extends NDframe implements DataFrameInterface {
433432
434433 let dfSubset2 = this . iloc ( {
435434 rows : [ `0:${ maxRow } ` ] ,
436- columns : [ `${ colLen - 4 } :` ]
435+ columns : [ `${ colLen - 3 } :` ]
437436 } ) ;
438437
439438 subIdx = this . index . slice ( 0 , maxRow ) ;
@@ -442,7 +441,7 @@ export default class DataFrame extends NDframe implements DataFrameInterface {
442441
443442 } else {
444443 let dfSubset1 = this . iloc ( { columns : [ "0:4" ] } ) ;
445- let dfSubset2 = this . iloc ( { columns : [ `${ colLen - 4 } :` ] } ) ;
444+ let dfSubset2 = this . iloc ( { columns : [ `${ colLen - 3 } :` ] } ) ;
446445
447446 subIdx = this . index . slice ( 0 , maxRow ) ;
448447 firstHalfValues = dfSubset1 . values as ArrayType2D
@@ -2447,17 +2446,4 @@ export default class DataFrame extends NDframe implements DataFrameInterface {
24472446 ) . group ( )
24482447
24492448 }
2450-
2451- /**
2452- * Make plots of Series or DataFrame.
2453- * Uses the Plotly as backend, so supports Plotly's configuration parameters
2454- * @param divId Name of the div to show the plot
2455- * @returns Plotly class that expoese different plot type
2456- */
2457- plot ( divId : string ) {
2458- //TODO: Add support for check plot library to use
2459- // So we can support other plot library like d3, vega, etc
2460- const plt = new PlotlyLib ( this , divId ) ;
2461- return plt ;
2462- }
24632449}
0 commit comments