I have a folder of CSV files that I want to read into a dataframe. The problem is that While all contain the set of columns I need, some of them also contain other columns. So for every CSV in the folder I want to only read in the common set of columns that I need.
For example:
Sheet 1 contains the columns:
Column 1, Column 2, Column 3, X
Sheet 2 contains the columns:
Column 1, Column 2, Column 3
I only need Column 1, Column 2, and Column 3. Is it possible to take care of that on read or do I need to read them in separately and then select the appropriate columns and append them together.