class_docstr: Calculates spread between bid/ask and also tick count.
  
      
class_docstr_tok: ["Calculates","spread","between","bid\/ask","and","also","tick","count","."]
code: def calculate_tick_count(self, data_frame, asset, freq="1h"):
      if isinstance(asset, str):
          asset = [asset]
  
      data_frame_tick_count = data_frame.resample(
          freq, how="count"
      ).dropna()
      data_frame_tick_count = data_frame_tick_count[[0]]
  
      data_frame_tick_count.columns = [x + ".event" for x in asset]
  
      return data_frame_tick_count
  
imports: import pandas
  from findatapy.util.loggermanager import LoggerManager
label_desc: Use image node_id 3 for calling the MarketLiquidity obj's underlying member method code with example usage: obj.calculate_tick_count(data_frame, asset, freq) and returns: data_frame_tick_count