Skip to content

python_script_to_read_all_files_in_directory and then write all data from separate files into one file

Notifications You must be signed in to change notification settings

bilalmohib/merge-csv-files-in-a-directory

Repository files navigation

Read_all_csv_files_and_merge_into_one

Index.py is the code and you have to change locations according to the location of your located csv files at two places

  • Line number 7 of code (path = "H://sir zeeshan work//Coding files//Test")
  • Line number 28 of code ( data = pd.read_csv('H:/sir zeeshan work/Coding files/Test/' + str(files)))
  • Also change the names according to the column names of your csv file from line number 18
  • Similary the change of columns number will lead to decrease or increase of array programmers can understand
  • Thank you

About

python_script_to_read_all_files_in_directory and then write all data from separate files into one file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages