code: def from_bl(fname):
      
      df = pd.read_csv(
          fname,
          skiprows=2,
          parse_dates=[1],
          index_col=0,
          names=["bottle_number", "time", "startscan", "endscan"],
      )
      df._metadata = {
          "time_of_reset": pd.to_datetime(
              linecache.getline(str(fname), 2)[6:-1]
          ).to_pydatetime()
      }
      return df
docs: Read Seabird bottle-trip (bl) file
  
      Example
      -------
      >>> from pathlib import Path
      >>> import ctd
      >>> data_path = Path(__file__).parents[1].joinpath("tests", "data")
      >>> df = ctd.from_bl(str(data_path.joinpath('bl', 'bottletest.bl')))
      >>> df._metadata["time_of_reset"]
      datetime.datetime(2018, 6, 25, 20, 8, 55)