code: def sma(data: pd.DataFrame, span: int = 100) -> pd.DataFrame:
      """Computes and returns the simple moving average.
  
      Note: the moving average is computed on all columns.
  
      :param data: A dataframe of daily stock prices
      :param span: Number of days/values over which the average is computed, default: 100
  
      :return: Simple moving average
      """
      # Type validations:
      type_validation(data=data, span=span)
      return data.rolling(window=span, center=False).mean()
  
file_path: FinQuant/finquant/moving_average.py
imports: from typing import Callable, List
  import matplotlib.pyplot
  import numpy
  import pandas
  from finquant.data_types import SERIES_OR_DATAFRAME
  from finquant.type_utilities import type_validation
label_desc: Use image node_id 2 for calling a global function with example usage: sma(data, span) and returns: data