Skip to content

Commit 95a2060

Browse files
committed
chore(typedef): added diff function to interface
1 parent 6265d36 commit 95a2060

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/danfojs-base/shared/types.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ export interface SeriesInterface extends NDframeInterface {
184184
toCSV(options?: CsvOutputOptionsBrowser): string | void
185185
toJSON(options?: JsonOutputOptionsBrowser): object | void
186186
toExcel(options?: ExcelOutputOptionsBrowser): void
187-
iat(index: number): number | string | boolean | undefined
188-
at(index: string | number): number | string | boolean | undefined
187+
iat(index: number): number | string | boolean | undefined
188+
at(index: string | number): number | string | boolean | undefined
189189
}
190190

191191
//Start of DataFrame class types
@@ -218,6 +218,7 @@ export interface DataFrameInterface extends NDframeInterface {
218218
div(other: DataFrame | Series | number | number[], options?: { axis?: 0 | 1, inplace?: boolean }): DataFrame | void
219219
pow(other: DataFrame | Series | number | number[], options?: { axis?: 0 | 1, inplace?: boolean }): DataFrame | void
220220
mod(other: DataFrame | Series | number | number[], options?: { axis?: 0 | 1, inplace?: boolean }): DataFrame | void
221+
diff(other: DataFrame | Series | number[] | number, options?: { axis?: 0 | 1, inplace?: boolean }): DataFrame | void
221222
mean(options?: { axis?: 0 | 1 }): Series
222223
median(options?: { axis?: 0 | 1 }): Series
223224
mode(options?: { axis?: 0 | 1, keep?: number }): Series
@@ -329,8 +330,8 @@ export interface DataFrameInterface extends NDframeInterface {
329330
toCSV(options?: CsvOutputOptionsBrowser): string | void
330331
toJSON(options?: JsonOutputOptionsBrowser): object | void
331332
toExcel(options?: ExcelOutputOptionsBrowser): void
332-
iat(row: number, column: number): number | string | boolean | undefined
333-
at(row: string | number, column: string): number | string | boolean | undefined
333+
iat(row: number, column: number): number | string | boolean | undefined
334+
at(row: string | number, column: string): number | string | boolean | undefined
334335
}
335336

336337
export interface DateTime {

0 commit comments

Comments
 (0)