code: def read_pandas(fname, *args, **kwargs):
      
      if not os.path.exists(fname):
          raise ValueError('no data file `{}` found!'.format(fname))
      if fname.endswith('csv'):
          df = pd.read_csv(fname, *args, **kwargs)
      else:
          xl = pd.ExcelFile(fname)
          if len(xl.sheet_names) > 1 and 'sheet_name' not in kwargs:
              kwargs['sheet_name'] = 'data'
          df = pd.read_excel(fname, *args, **kwargs)
      return df
docs: Read a file and return a pd.DataFrame