code: def filter_premarket(df: pd.DataFrame):
      df = df[0 <= df["Minute"]]
      df = df[df["Minute"] < 390]
      df = df.reset_index()
      df = df[
          [
              "Date",
              "Time",
              "Minute",
              "Open",
              "High",
              "Low",
              "Close",
              "Volume",
          ]
      ]
  
      return df
  
file_path: labml/samples/stocks/build_numpy_cache.py
imports: import urllib.request
  import numpy
  import pandas
  from labml import monit, lab, logger
  from stocks import CandleIdx
label_desc: Use image node_id 2 for calling a global function with example usage: filter_premarket(df) and returns: df