title: How to read/loop through multiple .csv files in a folder using Google Colab python, then assign each file as a function parameter
body: <p>I'm currently using Google Colab and already mounted my Google Drive.
  I have a folder inside the drive that has multiple .csv files</p>
  <p>e.g. folder name: <code>dataset</code></p>
  <p>folder content: <code>data1.csv, data2.csv, data3.csv</code>, and so on</p>
  <p>I want to iterate through every file in the folder, then make the file a function parameter</p>
  <p>Here's my code but still didn't work</p>
  <pre><code>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'))
  </code></pre>
  <p>Thank you</p>