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
1 answer

Reading (streaming) a csv file with first n lines empty

I am using papa parse to read a csv file hosted remotely. The issue is that header row is not in the first line of the file, instead, the file begins with a few empty lines, then we have the header row, and then all data. I am struggling to get papa…
LucasSeveryn
  • 5,984
  • 8
  • 38
  • 65
0
votes
1 answer

Using this in the chunk callback function

I have a class which can parse a file using papa parse, now I would like to pass it a chunk callback function (which is also part of the class). in the function i would like to use the this which should be pointing to the objects scope (but its…
Raymond
  • 93
  • 7
0
votes
1 answer

Large strings with Papa parse cause Chrome and Opera to crash

Papa Parse appears to be causing Chrome and Opera to crash (Windows 7) if I attempt to parse "large" csv strings of about 1 million rows with about 20 columns. Where the same page successfully loads in Firefox. Chrome and Opera crash even before…
hhtx
  • 1
  • 1
0
votes
1 answer

C3js, Papaparse, Parse CSV to C3js

I've been trying to parse a CSV file with Papaparse4 to use it on charts created with C3js, but I can't get it to work. I want to be able to load different CSV files, so I'm using a file input, the file gets parsed (I can see it on the console), but…
0
votes
0 answers

Trying to Simply Access Array in Papaparse

I'm trying to simply access an array in Papaparse - and then spit out elements of that array either by header name or just by array address (1,1) etc. However, I can't even get the data to load correctly. The count of lines shows up correctly at…
iontom
  • 463
  • 2
  • 6
  • 15
0
votes
0 answers

Can papaParse be modified to work in IE8?

At my job most if not all employees use IE8. I know the faq page in papaParse says IE10+ preferred. My questions is has anyone modified it to work with older versions of IE? The error thrown by IE is: Object doesn't support this property or…
ljrod95
  • 55
  • 13
0
votes
1 answer

Papaparse/vfile doesnt work- Garbled output

I posted a question regarding parsing large csv files Jquery crashes while parsing large csv file. It involves reading a csv file and tablifying it. I tried using the code given in one of the responses but it doesn't work.. Here's my entire…
Tania
  • 1,855
  • 1
  • 15
  • 38
0
votes
1 answer

How to parse csv with Papa Parse in preload stage Phaser.js, not asynchronous?

I develop game with Phaser.js Now I need to parse csv file, before game starts, and use Papa Parse for that. The csv file contains image url's for preload stage in Phaser. I try to do it like that: function preload() { …
StopKran
  • 395
  • 5
  • 22
0
votes
1 answer

How to input null into highcharts and then ignore it in line graph?

I'm making a line graph using highcharts and whenever the input is null the line graph breaks into scatterplot. I would like it to just ignore that value and connect to the next point in the graph instead. I think I used the correct code, but the…
Miha Šušteršič
  • 9,742
  • 25
  • 92
  • 163
0
votes
1 answer

Using Papa Parse why can I not reference the data that has been parsed?

I am using Papa Parse to parse a csv file. In "complete" I try to assign the results, an array of objects, to a variable that I declared outside of my call to Papa Parse's parse function. The variable is fine inside of the function but undefined…
maddmenz
  • 3
  • 4
0
votes
1 answer

How can I cache a csv for Papa Parse to parse?

I am very unfamiliar with how caching works, and so I was wondering how I could pull a csv off a server the first time, but on subsequent refreshes use a cached csv file? I know how to get the file from the server, and parse it via PapaParse.…
-1
votes
0 answers

How can i fetch csv file in nodejs from nseindia.com?

Problem is link being not accessible to nodejs get client. Could be some headers issue or something. Problem is with 'https://www.nseindia.com/api/reportASM?csv=true' link. This link works on nseindia website https://www.nseindia.com/reports/asm I…
-1
votes
1 answer

Modules Not Being Found

I keep getting the error "cannot find module papaparse" for the first code and "cannot find module d3 on the second code block. I have them installed and can see the versions 5.4.1 for papa and 7.8.5 for d3? Why can't they be found. I feel like it…
Motozono
  • 1
  • 1
-1
votes
1 answer

Parsing issue with csv files using Papaparser

I'm trying to parse csv file using Papaparser but the csv file has numbers and strings as headers.papaprser parsing the numbers which are headers first and then strings.Below is my csv…
Swetha
  • 99
  • 1
  • 1
  • 11
-1
votes
1 answer

Papa Parse - array to markers

This should be a really quick and easy one. Sorry if there is a simple solution. I've read through the documentation but can't figure it out. I've parsed a CSV using papa-parse. var lyrHouses = Papa.parse('src/Houses.csv', { …
Parkes555
  • 41
  • 6
1 2 3
27
28