Questions tagged [papaparse]

Papa Parse is a fast and powerful CSV parser for JavaScript.

Papa Parse (formerly the jQuery Parse Plugin) is a robust and powerful CSV (character-separated values) parser with these features:

  • Easy to use
  • Parse CSV files directly (local or over the network)
  • Stream large files (even via HTTP)
  • Reverse parsing (converts JSON to CSV)
  • Auto-detect the delimiter
  • Worker threads to keep your web page reactive
  • Header row support
  • Pause, resume, abort
  • Can convert numbers and booleans to their types
  • Graceful and robust error handling
  • Minor jQuery integration to get files from <input type="file"> elements
  • Papa Parse has no dependencies - not even jQuery.

Visit the Papa Parse project page on GitHub.

Homepage & Demo

To learn how to use Papa Parse: see Documentation.

papaparse.min.js can be linked or downloaded to your project source.

418 questions
0
votes
2 answers

Simple CSV parsing in Javascript

Here is my problem: I am trying to parse a local CSV file in JavaScript. The file looks like…
Tom Février
  • 45
  • 1
  • 8
0
votes
0 answers

Determine if PapaParse parsing error is breaking or not

I'm using PapaParse to handle the CSV parsing for my program. My question is, how can I determine if the errors I receive from the parser are actually breaking? In the documentation it says Just because errors are generated does not necessarily…
Dylan
  • 697
  • 1
  • 9
  • 27
0
votes
1 answer

How do I loop through papapare and input my data into separate array?

The output looks like this I know how to obtain each individual value using this format console.log(data2["0"][2]); How would I loop through each value and input them into an array var data1 = []; var data2=[]; var data_all=[] …
Nick
  • 195
  • 1
  • 3
  • 13
0
votes
1 answer

Resulting array from PapaParse not filling out ng-repeat

I am trying to upload a csv and then run it thru PapaParse into a JSON. After PapaParse i store it as $scope.dataTable and it logs to the console properly but it doesnt populate my ng-repeat and i cant figure out why. var app =…
0
votes
0 answers

Papaparse is parsing numbers that are not there

I'm combining 2 csv spreadsheets into 1. Fist sheet/half has a certain format (let's say- round number, decimals, percentage, round number), and 2nd part/half has a different format (let's say decimals, currency, round number, round number). I…
0
votes
1 answer

How can I use Papa Parse or Angular to merge objects based on a certain attribute?

I'm using Papa Parse to convert a CSV file with name, date and result to JSON objects, but I want objects based on the names instead of the rows of the CSV file. If this isn't possible using Papa Parse, is there a method within Angular (or an…
Friso
  • 2,328
  • 9
  • 36
  • 72
0
votes
1 answer

Adding a library to a Suitelet

I am trying to use papaparse.js with a Suitelet so that I can upload a file to Netsuite's file cabinet using the suitelet and then parse the file using the Papa.parse() function in the papaparse api. However I get an error that Papa is undefined. …
kdub
  • 205
  • 1
  • 6
  • 14
0
votes
1 answer

How to use PapaParse with iMacros

I have written a macro in JavaScript that uses iMacros (FireFox addon) to login to a website and extract a table. Eventually I want the data in a JavaScript array so that I can loop over it. iMacros extracts the table in a csv format. I have tried…
GuitarViking
  • 165
  • 2
  • 12
0
votes
1 answer

Two consecutive fields having the same value make Papaparse fail?

Parsing following file ( in my case with 'header:true' ) : FN1,FN2,FN3 A1,A2,A3 B1,B2,B3 C1,C1,C3 D1,D2,D3 makes Papaparse fail on Row 4 : Too few fields: expected 3 fields but parsed 1 Please note this is a stripdown of a much larger file where…
jdla
  • 21
  • 4
0
votes
2 answers

Setting up a Papa Parse progress bar with Web workers

I'm working on a CSV parsing web application, which collects data and then uses it to draw a plot graph. So far it works nicely, but unfortunately it takes some time to parse the CSV files with papaparse, even though they are only about 3MB. So it…
Blind Seer
  • 492
  • 1
  • 5
  • 17
0
votes
1 answer

This javascript keeps printing data in a loop when parsing a csv file

I am successfully parsing, filtering and printing a CSV file using Papa Parse and jQuery. Unfortunately I seem to have managed to set up some sort of loop where the output keeps printing to the webpage. Code is as below, I know it's probably…
0
votes
1 answer

Uncaught ReferenceError: Papa is not defined

I am using Papa Parser to parse a CSV using JavaScript. When the function is called I receive the error "Uncaught ReferenceError: Papa is not defined." I have ensured the the papaparse.js is loaded before my own custom logic is loaded and still…
bcBorn
  • 122
  • 1
  • 1
  • 8
0
votes
2 answers

Checking dynamically built radio button list with jQuery

I'm trying to use jQuery to grab the value of a selected radio button. If I build a simple static page, it works fine. Simple working fiddle However, when I build the radio list dynamically, using PapaParse to parse a simple string and jQuery to…
Andrew
  • 8,445
  • 3
  • 28
  • 46
0
votes
1 answer

Papaparse - console log a row

Trying to console.log() a row of data read in with papaparse but I'm just getting an array of [object Object]. How do I console.log the row of unwrapped values? var fs = require('fs'); eval(fs.read('papaparse.min.js')); var config = { …
ProGirlXOXO
  • 2,170
  • 6
  • 25
  • 47
0
votes
1 answer

Papa parse working on chrome, not mobile

I have a script thats using papa parse to check for an entry in a CSV file, then redirecting based on if its there or not. It works perfectly fine in chrome on my desktop, has a few issues on firefox on my desktop, and completly doesnt work on my…
Marak Daga
  • 51
  • 6