Reading selected columns from csv using fread #3418
Answered
by
oleksiyskononenko
n-srinidhi
asked this question in
Q&A
-
Hi!I am trying to read csv files into a datatable. I need to read only specific columns from the csv file. How do I do this for a datatable?Currently, I am reading the entire file into memory and then selecting only the required subset, but I would like to use a neater way for achieving this. |
Beta Was this translation helpful? Give feedback.
Answered by
oleksiyskononenko
Feb 1, 2023
Replies: 1 comment 5 replies
-
Just use the |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
n-srinidhi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just use the
columns
parameter infread()
: https://datatable.readthedocs.io/en/latest/api/dt/fread.html#columns