Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after apply not able to set column #622

Open
scientechshub11 opened this issue Dec 24, 2023 · 0 comments
Open

after apply not able to set column #622

scientechshub11 opened this issue Dec 24, 2023 · 0 comments

Comments

@scientechshub11
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant