@@ -308,8 +308,6 @@ export interface DataFrame<T extends Record<string, Series> = any>
308
308
* ```
309
309
*/
310
310
describe ( ) : DataFrame ;
311
- /** @deprecated *since 0.4.0* use {@link unique} */
312
- distinct ( maintainOrder ?, subset ?, keep ?) : DataFrame ;
313
311
/**
314
312
* __Remove column from DataFrame and return as new.__
315
313
* ___
@@ -1001,11 +999,6 @@ export interface DataFrame<T extends Record<string, Series> = any>
1001
999
* ```
1002
1000
*/
1003
1001
median ( ) : DataFrame < T > ;
1004
- /**
1005
- * Unpivot a DataFrame from wide to long format.
1006
- * @deprecated *since 0.13.0* use {@link unpivot}
1007
- */
1008
- melt ( idVars : ColumnSelection , valueVars : ColumnSelection ) : DataFrame ;
1009
1002
/**
1010
1003
* Unpivot a DataFrame from wide to long format.
1011
1004
* ___
@@ -1604,11 +1597,6 @@ export interface DataFrame<T extends Record<string, Series> = any>
1604
1597
* ```
1605
1598
*/
1606
1599
tail ( length ?: number ) : DataFrame < T > ;
1607
- /**
1608
- * @deprecated *since 0.4.0* use {@link writeCSV}
1609
- * @category Deprecated
1610
- */
1611
- toCSV ( destOrOptions ?, options ?) ;
1612
1600
/**
1613
1601
* Converts dataframe object into row oriented javascript objects
1614
1602
* @example
@@ -1653,17 +1641,6 @@ export interface DataFrame<T extends Record<string, Series> = any>
1653
1641
* @category IO
1654
1642
*/
1655
1643
toObject ( ) : { [ K in keyof T ] : DTypeToJs < T [ K ] [ "dtype" ] | null > [ ] } ;
1656
-
1657
- /**
1658
- * @deprecated *since 0.4.0* use {@link writeIPC}
1659
- * @category IO Deprecated
1660
- */
1661
- toIPC ( destination ?, options ?) ;
1662
- /**
1663
- * @deprecated *since 0.4.0* use {@link writeParquet}
1664
- * @category IO Deprecated
1665
- */
1666
- toParquet ( destination ?, options ?) ;
1667
1644
toSeries ( index ?: number ) : T [ keyof T ] ;
1668
1645
toString ( ) : string ;
1669
1646
/**
@@ -2166,9 +2143,6 @@ export const _DataFrame = (_df: any): DataFrame => {
2166
2143
}
2167
2144
return wrap ( "dropNulls" ) ;
2168
2145
} ,
2169
- distinct ( opts : any = false , subset ?, keep = "first" ) {
2170
- return this . unique ( opts , subset ) ;
2171
- } ,
2172
2146
unique ( opts : any = false , subset ?, keep = "first" ) {
2173
2147
const defaultOptions = {
2174
2148
maintainOrder : false ,
@@ -2352,9 +2326,6 @@ export const _DataFrame = (_df: any): DataFrame => {
2352
2326
median ( ) {
2353
2327
return this . lazy ( ) . median ( ) . collectSync ( ) ;
2354
2328
} ,
2355
- melt ( ids , values ) {
2356
- return wrap ( "unpivot" , columnOrColumns ( ids ) , columnOrColumns ( values ) ) ;
2357
- } ,
2358
2329
unpivot ( ids , values ) {
2359
2330
return wrap ( "unpivot" , columnOrColumns ( ids ) , columnOrColumns ( values ) ) ;
2360
2331
} ,
@@ -2546,9 +2517,6 @@ export const _DataFrame = (_df: any): DataFrame => {
2546
2517
serialize ( format ) {
2547
2518
return _df . serialize ( format ) ;
2548
2519
} ,
2549
- toCSV ( ...args ) {
2550
- return this . writeCSV ( ...args ) ;
2551
- } ,
2552
2520
writeCSV ( dest ?, options = { } ) {
2553
2521
if ( dest instanceof Writable || typeof dest === "string" ) {
2554
2522
return _df . writeCsv ( dest , options ) as any ;
@@ -2632,9 +2600,6 @@ export const _DataFrame = (_df: any): DataFrame => {
2632
2600
2633
2601
return Buffer . concat ( buffers ) ;
2634
2602
} ,
2635
- toParquet ( dest ?, options ?) {
2636
- return this . writeParquet ( dest , options ) ;
2637
- } ,
2638
2603
writeParquet ( dest ?, options = { compression : "uncompressed" } ) {
2639
2604
if ( dest instanceof Writable || typeof dest === "string" ) {
2640
2605
return _df . writeParquet ( dest , options . compression ) as any ;
@@ -2669,9 +2634,6 @@ export const _DataFrame = (_df: any): DataFrame => {
2669
2634
2670
2635
return Buffer . concat ( buffers ) ;
2671
2636
} ,
2672
- toIPC ( dest ?, options ?) {
2673
- return this . writeIPC ( dest , options ) ;
2674
- } ,
2675
2637
writeIPC ( dest ?, options = { compression : "uncompressed" } ) {
2676
2638
if ( dest instanceof Writable || typeof dest === "string" ) {
2677
2639
return _df . writeIpc ( dest , options . compression ) as any ;
0 commit comments