javascriptdata / danfojs

Danfo.js is an open source, JavaScript library providing high performance, intuitive, and easy to use data structures for manipulating and processing structured data.
https://danfo.jsdata.org/
MIT License
4.81k stars 209 forks source link

after apply not able to set column #622

Open scientechshub11 opened 11 months ago

scientechshub11 commented 11 months ago

movies['genres'] = movies['genres'].apply(getGenres, axis=1) movies['keywords'] = movies['keywords'].apply(getGenres, axis=1) movies['cast'] = movies['cast'].apply(getCast, axis=1) movies['crew'] = movies['crew'].apply(getCrew, axis=1) movies['overview'] = movies['overview'].apply(getOverview, axis=1)

after doing this when I am trying to movies['tags'] = movies['genres'] + movies['keywords'] + movies['cast'] + movies['crew'] + movies['overview']

having an error like

throw new Error("File format not supported!"); ^

Error: File format not supported! at Series.NDframe (C:\Users\chakr\OneDrive\Documents\ai and ml\ainode\node_modules\danfojs\dist\danfojs-base\core\generic.js:100:23) at new Series (C:\Users\chakr\OneDrive\Documents\ai and ml\ainode\node_modules\danfojs\dist\danfojs-base\core\series.js:134:28) at DataFrame.$getColumnData (C:\Users\chakr\OneDrive\Documents\ai and ml\ainode\node_modules\danfojs\dist\danfojs-base\core\frame.js:196:24) at DataFrame.get (C:\Users\chakr\OneDrive\Documents\ai and ml\ainode\node_modules\danfojs\dist\danfojs-base\core\frame.js:147:37) at transformcsv (C:\Users\chakr\OneDrive\Documents\ai and ml\ainode\app.js:24:28) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

can you please help me to resolve this error