data-forge / data-forge-js

JavaScript data transformation and analysis toolkit inspired by Pandas and LINQ.
MIT License
143 stars 11 forks source link

add "materialize" method to dataframe to force evaluation and return a new materialized dataframe object #6

Closed sunliren2005 closed 7 years ago

sunliren2005 commented 7 years ago

We found performance issue when we drive more dataframe from a common source dataframe. The iterator is repeating on the common part. we need something like, so it won't start from beginning.

function materialize(){ 
   return new dataForge.DataFrame({
            values: this.toArray()
})};
sunliren2005 commented 7 years ago

I found bake. Sorry.