code: def ohlc(n=100):
      """
      Returns a DataFrame with the required format for
      a candlestick or ohlc plot
      df[['open','high','low','close']]
  
      Parameters:
      -----------
              n : int
                      Number of ohlc points
  
      """
      index = pd.date_range(
          "1/1/15", periods=n * 288, freq="5min", tz="utc"
      )
      data = np.random.randn(n * 288)
      data[0] = np.array([100])
      df = pd.DataFrame(data, index=index, columns=["a"])
      df = df.cumsum()
      df = df.resample("1d").ohlc()
      df.index = df.index.date
      df.index = pd.to_datetime(df.index)
      return df["a"]
  
imports: import os
  import string
  import numpy
  import pandas
  from .auth import get_config_file
  from .exceptions import CufflinksError
label_desc: Use image node_id 11 for calling a global function with example usage: ohlc(n) and returns: df