class_docstr: Creates simple statistical reports (via plots) on time series, outputting results
  
      
code: def report_single_var_regression(
      self,
      y,
      x,
      y_variable_names,
      x_variable_names,
      statistic,
      pretty_index=None,
  ):
      if not (isinstance(statistic, list)):
          statistic = [statistic]
  
      # conduct the regression
      stats = Calculations.linear_regression_single_vars(
          y, x, y_variable_names, x_variable_names
      )
  
      if pretty_index is None:
          pretty_index = x_variable_names
  
      # strip out the field(s) from the regression output which we want
      stats_df = Calculations.strip_linear_regression_output(
          pretty_index, stats, statistic
      )
      # stats_df = stats_df.sort_index()
  
      return stats_df
  
file_path: finmarketpy/finmarketpy/economics/report.py
imports: import pandas
  from chartpy import Chart, Style
  from findatapy.timeseries.calculations import Calculations
  from findatapy.util.dataconstants import DataConstants
label_desc: Use image node_id 1 for calling the Report obj's underlying member method code with example usage: obj.report_single_var_regression(y, x, y_variable_names, x_variable_names, statistic, pretty_index) and returns: stats_df