title: How to open multiple json files in Python?
body: <p>I have to open a lot of json files in python. The following code works fine for a small amount of json files. But im already waiting 6 hours now and it's still not working. Im sure there should be a faster way than this.</p>
  
  <pre><code>base_dir = 'All Datasets EDIT/airlinesjson'
  json_data_firstmonth2 = pd.DataFrame()
  json_data_fmnoreset = pd.DataFrame()
  
  for file in os.listdir(base_dir):
      if 'json'  in file:
          json_path = os.path.join(base_dir, file)
          json_data = pd.read_json(json_path, lines=True)
          json_data_fmnoreset = pd.concat([json_data_fmnoreset,json_data], sort=False)
  
  json_data_firstmonth2 = json_data_fmnoreset.reset_index()
  </code></pre>