class_docstr: Yahoo Finance connector for retrieving stock data.
class_docstr_tok: ["Yahoo","Finance","connector","for","retrieving","stock","data","."]
docstr: Return the head of the data source that the connector is connected to.
  
  Returns:
      DataFrameType: The head of the data source that the connector is
      connected to.
docstr_tok: ["Return","the","head","of","the","data","source","that","the","connector","is","connected","to",".","Returns",":","DataFrameType",":","The","head","of","the","data","source","that","the","connector","is","connected","to","."]
code: def head(self):
      """
      Return the head of the data source that the connector is connected to.
  
      Returns:
          DataFrameType: The head of the data source that the connector is
          connected to.
      """
      return self.ticker.history(period="5d")
  
file_path: pandas-ai/pandasai/connectors/yahoo_finance.py
imports: import os
  import pandas
  from typing import Optional, Union
  from .base import YahooFinanceConnectorConfig, BaseConnector
  import time
  from ..helpers.path import find_project_root
  from ..constants import DEFAULT_FILE_PERMISSIONS
  import hashlib
label_desc: Use image node_id 2 for calling the YahooFinanceConnector obj's underlying member method code with example usage: obj.head() and returns: self