how to read multiple csv file at same time in jupyter notebook for eg
1- ITC.CSV
2- GOOG.CSV
AND SO ON…
IS BELOW CODE PREFERABLE?
DATA = PD.READ_CSV('ITC.CSV','GOOG.CSV','…')
THANKYOU IN ADVANCE
You need to run a for loop to read multiple CSV files. Try the below code.
import pandas as pd
csv_files = ['ITC.csv','GOOG.csv']
data= []
for i in range(len(csv_files)):
price = pd.read_csv(csv_files[i])
data.append(price)