class_docstr: Class representing a market index.
  
  :param data: Historical price data of the market index.
  
  The ``Market`` class extends the ``Asset`` class and represents a specific type of asset,
  specifically a market index.
  It requires historical price data for the market index to initialize an instance.
docstr: :param data: Historical price data of the market index.
docstr_tok: [":","param","data",":","Historical","price","data","of","the","market","index","."]
code: def __init__(self, data: pd.Series) -> None:
      """
      :param data: Historical price data of the market index.
      """
      super().__init__(data, name=data.name, asset_type="Market index")
      self.daily_returns = self.comp_daily_returns()
  
imports: import pandas
  from finquant.asset import Asset
  from finquant.returns import daily_returns
label_desc: Use image node_id 1 to create a new Market object from inherited base classes: Asset with example: obj = Market(data)