I've been exploring their API without much luck.
My goal is to extract data from CSV files that are sent to the client upon server entry.
Here's the code snippet I attempted:
// Attempting to parse local CSV file
Papa.parse("data/premier league/14-15s.csv", {
complete: function(results) {
console.log("Finished:", results.data);
}
});
This approach didn't yield any results, as shown by the following output:
Finished: [Array[1]]
0: Array[1]
0: "data/premier league/14-15s.csv"
length: 1
__proto__: Array[0]
length: 1
__proto__: Array[0]
(Various Array functions listed)
The question remains: Where is the actual CSV data?