You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm trying to transform a column of a DataFrame:
importdfdfrom"danfojs-node";constdf=newdfd.DataFrame({a: [1,2,3],b: ["a","b","c"],});// ** METHOD 1 **df["b"]=df["b"].map((value)=>value.toUpperCase());console.log(df["b"].values());// error: File format not supported!// ** METHOD 2 ** consttransformed=df["b"].map((value)=>value.toUpperCase());df.addColumn("b",transformed,{inplace: true},);console.log(df["b"].values());// error: File format not supported!
Full error stack trace:
throw new Error("File format not supported!");
^
Error: File format not supported!
at Series.NDframe (/home/bluesk/Documents/news_aggregator/news_
anfojs-base/core/generic.js:100:23)
at new Series (/home/bluesk/Documents/news_aggregator/news_aggr
js-base/core/series.js:134:28)
at DataFrame.$getColumnData (/home/bluesk/Documents/news_aggreg
ode/dist/danfojs-base/core/frame.js:196:24)
at DataFrame.get (/home/bluesk/Documents/news_aggregator/news_a
nfojs-base/core/frame.js:147:37)
at file:///home/bluesk/Documents/news_aggregator/news_aggregato
at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:
at async loadESM (node:internal/process/esm_loader:34:7)
To Reproduce
Run the above code.
Expected behavior
No error should be raised, I should be able to access the 'b' column and its values.
Desktop (please complete the following information):
OS: Linux
Nodejs Node.js v20.9.0
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm trying to transform a column of a DataFrame:
Full error stack trace:
To Reproduce
Run the above code.
Expected behavior
No error should be raised, I should be able to access the 'b' column and its values.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: