Comments (6)
@opeyemibami can you do some benchmarks comparison between danfojs ops and vanilla Js?
from danfojs.
Some answers to your questions.
- There are no performance official benchmarks for now. Most operations (especially mathematical ops) should be faster because we're using tfjs under the hood.
- In the browser, we are using @tensorflow/tfjs, it's optimised with webgl and makes math ops faster as well.
- Most functions are asynchronous, and should not block the main thread.
from danfojs.
On this topic, it would be very interesting to see how/if mentioned Danfo operations benefit from the tfjs wasm backend (https://www.npmjs.com/package/@tensorflow/tfjs-backend-wasm). If you benchmark, please include that in the benchmarks! :)
from danfojs.
I'm just doing a spike with danfo, and came across this post.
I might be missing something, but I have this spike:
https://codesandbox.io/s/danfojs-sandbox-ivyzk
A simple groupBy sum with lodash takes 53ms, and with danfo 42s.
What am I missing?
t1 53.80000001192093
t2 42480.09999996424
from danfojs.
A related topic would be memory requirements.
I'm only minimally familiar with pandas and don't know how they do it, but how are large datasets affecting memory usage? If I have a 10MB json and apply a few transforms on it that return new data frames each time, is any stream processing used that Node is very famous for, for example?
I have seen #84 as well, which indicates that some ideas for performance optimisations are in the works, which is awesome.
Are there any docs about it or timelines attached.
from danfojs.
Stale issue message
from danfojs.
Related Issues (20)
- shift is missing for Series HOT 1
- Transpose a DataFrame HOT 1
- Series to DataFrame HOT 3
- Unable to handle NA value from CSV HOT 1
- Replacing a value with 0 with dataframe.replace throws an error HOT 1
- after apply not able to set column
- query operator HOT 1
- df apply not working as expected
- development environment not working as per contribution guidelines
- merge has exponential complexity crashing the runtime
- Problem in installation HOT 2
- The node environment is incorrectly installed
- Sorting bug when NaN values exist HOT 5
- Methods in the documentation don't match the current lib status for browser
- dropNa not working HOT 3
- Issue with Retrieving Columns Named with Colon ':' in Single Selection Using danfojs-node
- Type Narrowing an object which is either dfd.Series or dfd.DataFrame to dfd.DataFrame HOT 1
- Concat behaviour differs significantly from pandas (column order dependent)
- Leading Zeros Are Removed After dtypes Set to "string"
- Column empty and not being processed when top row's cell is empty HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from danfojs.