Closed wasdee closed 10 hours ago
It probably failed to read the file. Try console.log(csv) to see what it read.
workspace.readText(...) takes a relative path to the workspace so that might be the issue
File is normal. Generated by pandas, python. Tested read by others already
Console.log the file show expected filename and its contents
Path was relative from the start.
I havd't noticed the attached file! Thanks!
To correct this issue, pass "csv.content" to the parse function. I'll make the APIs more resilient to this kind of mistakes in the next release. Thank you for reporting!
script({
model: "small",
// model: "perplexity:llama-3.1-sonar-small-128k-online",
// model: "perplexity:llama-3.1-sonar-large-128k-online",
// model: "perplexity:llama-3.1-sonar-huge-128k-online",
})
const csv = await workspace.readText("ExhibitorClean1.csv")
const rows = CSV.parse(csv.content) // use .content here
console.log(rows)
fixed in 1.78.3
ExhibitorClean1.csv
error log
reproducible