Skip to content

Commit 4f4012d

Browse files
committed
Merge branch 'danfojs-browser' of git://github.com/bherbruck/danfojs into bherbruck-danfojs-browser
2 parents 234874d + e287454 commit 4f4012d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

danfojs-browser/types/core/frame.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export class DataFrame extends Ndframe {
346346
* Returns the Tensorflow tensor backing the DataFrame Object
347347
* @returns {2D tensor}
348348
*/
349-
get tensor(): 2;
349+
get tensor(): Tensor2D;
350350
/**
351351
* Sets the data types of an DataFrame
352352
* @param {Object} kwargs {column: Name of the column to cast, dtype: [float32, int32, string] data type to cast to}
@@ -398,6 +398,7 @@ export class DataFrame extends Ndframe {
398398
*/
399399
append(val?: any): DataFrame;
400400
}
401+
import { Tensor2D } from "@tensorflow/tfjs-core";
401402
import Ndframe from "./generic";
402403
import { Series } from "./series";
403404
import { GroupBy } from "./groupby";

danfojs-browser/types/core/series.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class Series extends NDframe {
1313
* Returns a Series in Tensorflow's tensor format
1414
* @returns {1D Tensor}
1515
*/
16-
get tensor(): 1;
16+
get tensor(): Tensor1D;
1717
/**
1818
* Returns the first n values in a Series
1919
* @param {rows} Number of rows to return
@@ -364,6 +364,7 @@ export class Series extends NDframe {
364364
*/
365365
append(val?: any, inplace?: boolean): Series;
366366
}
367+
import { Tensor1D } from "@tensorflow/tfjs";
367368
import NDframe from "./generic";
368369
import { Str } from "./strings";
369370
import { TimeSeries } from "./timeseries";

0 commit comments

Comments
 (0)