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

Specify the size of columns ??? #36

Closed
lingbl opened this issue Mar 1, 2023 · 2 comments
Closed

Specify the size of columns ??? #36

lingbl opened this issue Mar 1, 2023 · 2 comments

Comments

@lingbl
Copy link

lingbl commented Mar 1, 2023

the head of my tsv file is one columns , but the data is ten columns, can I specify the size of tsv columns ?
and If ftcsv can skip some head line is better, my tsv file is not always formal.

@FourierTransformer
Copy link
Owner

I'm not exactly sure what you mean, it sounds like you have 10 lines you want to skip before parsing. If that's the case, you could try loading the file into memory first, scanning past the header data columns (and make a new string), and then using ftcsv to parse the rest of the file.

Sort've pre-process the file before parsing.

@lingbl
Copy link
Author

lingbl commented Mar 11, 2023

fine , this a way to skip some head lines

@FourierTransformer FourierTransformer closed this as not planned Won't fix, can't repro, duplicate, stale Aug 5, 2024
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

2 participants