Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skipFirstNLines is documented but not released #1040

Open
SamTolmay opened this issue Feb 12, 2024 · 4 comments
Open

skipFirstNLines is documented but not released #1040

SamTolmay opened this issue Feb 12, 2024 · 4 comments

Comments

@SamTolmay
Copy link

It looks like the skipFirstNLines config option is shown in the documentation, but it is not part of the latest release (5.4.1 as of the time of posting this)

@SamTolmay SamTolmay changed the title skipFirstNLines is documented but not release skipFirstNLines is documented but not released Feb 12, 2024
@n8udd
Copy link

n8udd commented Feb 16, 2024

Just had the same issue.

Tried installing the latest branch, but the method doesn't appear to exist/work.

@Gonzalomorales1001
Copy link

Just had the same issue.

Tried installing the latest branch, but the method doesn't appear to exist/work.

If anyone has an alternative solution, please tell us.

@michalrozekariane
Copy link

Same goes here.

@jkruke
Copy link

jkruke commented Mar 7, 2024

Just had the same issue.

Tried installing the latest branch, but the method doesn't appear to exist/work.

If anyone has an alternative solution, please tell us.

My current workaround to skip the first 5 lines of the CSV file:

const skipFirstNLines = 5;
const options = {beforeFirstChunk: chunk => [...chunk.split('\n').slice(skipFirstNLines)].join('\n')};
papa.parse("myfile.csv", options);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants