code: def read_all(pattern='data/lightbulb-*.csv'):
      
      result = []
      for filename in glob.iglob(pattern):
          print('reading', filename, file=sys.stderr)
          ts = traces.TimeSeries.from_csv(
              filename,
              time_column=0,
              time_transform=parse_iso_datetime,
              value_column=1,
              value_transform=int,
              default=0,
          )
          ts.compact()
          result.append(ts)
      return result
docs: Read all of the CSVs in a directory matching the filename pattern
      as TimeSeries.