标签: danfojs

类似于 pandas.resample 但在 Node.js 中 [danfo.js]

我是node.js的新手,我正在寻找一种模仿pandas.resample(\xe2\x80\x983H\xe2\x80\x99 , label=\xe2\x80\x99right\xe2\x80\x99 , close=\xe2\x80\x99left\xe2\x80\x99).max() 使用时间序列,能够获得类似数据帧的结构,其在 3 小时的块中发生的最大值(每 3 小时 1 个值) ,最大的一个)。我也有兴趣获取 20 分钟或更细粒度的数据。

\n

我正在danfo.js https://danfo.jsdata.org/api-reference/dataframe中探索数据帧,但我没有看到任何与重新采样具有相同功能的东西。

\n

请问你能帮我吗?谢谢你!

\n

time-series node.js pandas-resample danfojs

9
推荐指数
1
解决办法
582
查看次数

如何迭代 danfojs DataFrame

是否可以迭代 danfojs DataFrame?认为也许可以将 .iloc 函数与索引一起使用,但 .iloc 返回一个 DataFrame,而不是一个 Series。

loops dataframe danfojs

6
推荐指数
1
解决办法
919
查看次数

如何在 Angular Web 应用程序中导入和使用 Tensorflow 的 DANFO.js 库?

我正在尝试在(使用 Ionic 组件,但这是不相关的)内部使用 Tensorflow 的DANFO.js库。Angular web app

  • 我只是运行命令:npm install danfojs --save并且npm install @tensorflow/tfjs-node --save
  • 我在 Angular 中尝试了各种导入,Service例如:import 'danfojs';import { DataFrame } from 'danfojs';甚至根据我能找到的与此主题相关的唯一问题import { DataFrame } from 'danfojs/dist/core/frame';
  • 上面所有的例子都不起作用
  • app.module我什至尝试在不进行任何更改的情况下导入 DANFO.js

我总是收到此错误消息(其余错误正在编辑中):

Build at: 2021-11-21T21:38:12.984Z - Hash: 5f05ff4be188e54ccaaf - Time: 10137ms
[ng] Error: node_modules/danfojs/types/core/generic.d.ts:75:26 - error TS2307: Cannot find module '@tensorflow/tfjs-node' or its corresponding type declarations.    
[ng] 75     get tensor(): import("@tensorflow/tfjs-node").Tensor1D | import("@tensorflow/tfjs-node").Tensor2D;
[ng] …
Run Code Online (Sandbox Code Playgroud)

javascript typescript tensorflow angular danfojs

4
推荐指数
1
解决办法
1723
查看次数