class_docstr: Guardian financial headlines from year 2020. Data derived from
  https://www.kaggle.com/datasets/notlucasp/financial-news-headlines?resource=download
class_docstr_tok: ["Guardian","financial","headlines","from","year","2020",".","Data","derived","from","https",":","\/\/www.kaggle.com\/datasets\/notlucasp\/financial-news-headlines","?","resource=download"]
docstr: Returns
  -------
  pd.DataFrame
  
  I.e.,
  >>> headline_df.iloc[0]
  Unnamed: 0                                                   0
  Text          Johnson is asking Santa for a Christmas recovery
  Date                                                2020-07-18
docstr_tok: ["Returns","--","--","--","-","pd.DataFrame","I.e.",",",">",">",">","headline_df.iloc","[","0","]","Unnamed",":","0","0","Text","Johnson","is","asking","Santa","for","a","Christmas","recovery","Date","2020-07-18"]
code: def get_data():
      """
      Returns
      -------
      pd.DataFrame
  
      I.e.,
      >>> headline_df.iloc[0]
      Unnamed: 0                                                   0
      Text          Johnson is asking Santa for a Christmas recovery
      Date                                                2020-07-18
      """
      data_stream = pkgutil.get_data(
          "scattertext", "data/guardian_headlines.csv.bz2"
      )
      return pd.read_csv(
          io.BytesIO(bz2.decompress(data_stream))
      ).assign(Date=lambda df: pd.to_datetime(df.Date))
  
imports: import bz2
  import io
  import json
  import pkgutil
  import re
  import sys
  from scattertext.Common import POLITICAL_DATA_URL, ROTTEN_TOMATOES_DATA_URL
  import pandas
label_desc: Use image node_id 1 for calling the GuardianHeadlines obj's underlying member method code with example usage: obj.get_data() and returns: pd