Question: I have multiple .csv files. One csv files contain 49 columns and 500 rows. I want to choose just 8 columns in each CSV file

I have multiple .csv files. One csv files contain 49 columns and 500 rows. I want to choose just 8 columns in each CSV file for a new data frame. I need help with a loop method to take 8 columns out of 49 columns for 100 CSV files. Please give the correct code and looping method

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!