code: def series_dtype(s: pd.Series) -> VarType:
      """
      Computes the type of a pandas series.
  
      Parameters
      ----------
      s : pd.Series
          The series for which we wish to determine the type.
  
      Returns
      -------
      VarType
      """
      if is_bool_dtype(s):
          return VarType.TYPE_CAT
      elif is_string_dtype(s):
          return VarType.TYPE_CAT
      elif s.dtype.name == "object":
          return VarType.TYPE_CAT
      elif is_numeric_dtype(s):
          if numeric_is_continuous(s):
              return VarType.TYPE_NUM
          else:
              return VarType.TYPE_CAT
      else:
          return VarType.TYPE_UNSUPPORTED
  
file_path: shapash/shapash/report/common.py
imports: from typing import Union, Optional
  from enum import Enum
  from numbers import Number
  import pandas
  import os
  from pandas.api.types import is_string_dtype, is_numeric_dtype, is_bool_dtype
label_desc: Use image node_id 1 for calling a global function with example usage: series_dtype(s) and returns: VarType, VarType, VarType, VarType, VarType, VarType