I'm currently using Google Colab and already mounted my Google Drive. I have a folder inside the drive that has multiple .csv files
e.g. folder name: dataset
folder content: data1.csv, data2.csv, data3.csv
, and so on
I want to iterate through every file in the folder, then make the file a function parameter
Here's my code but still didn't work
from google.colab import drive
drive.mount('/content/drive/')
def myfunction(data):
###function detail here###
dir = '/content/drive/dataset'
for files in dir:
myfunction(pd.read_csv('filename'))
Thank you