Check out Kite (free AI Coding Assistant) → Link



Buy Me a Coffee? Your support is much appreciated!

PayPal Me: https://www.paypal.me/jiejenn/5
Venmo: @Jie-Jenn

Source Code:  

 

 import pandas as pd

csv_list = ['ibm.csv', 'mo.csv', 'mtb.csv']

df_master = pd.read_csv('master.csv')

for csv_file in csv_list:
    df = pd.read_csv(csv_file)
    df.to_csv('master.csv', mode='a', header=False, index=False)