class_docstr: Result of causal analysis.
class_docstr_tok: ["Result","of","causal","analysis","."]
code: def _get_dashboard_object(self):
      causal_data = self._create_causal_data_object()
  
      causal_data.global_effects = (
          self.global_effects.reset_index().to_dict(orient="records")
      )
      local_dicts = (
          self.local_effects.groupby("sample")
          .apply(lambda x: x.reset_index().to_dict(orient="records"))
          .values
      )
      causal_data.local_effects = [list(v) for v in local_dicts]
      causal_data.policies = [
          self._get_policy_object(p) for p in self.policies
      ]
  
      return causal_data
  
imports: import json
  import re
  import uuid
  from pathlib import Path
  from typing import Any, List, Optional, Tuple, Union
  import pandas
  import semver
  from responsibleai._interfaces import CausalConfig
  from responsibleai._interfaces import CausalData, CausalPolicy, CausalPolicyGains, CausalPolicyTreeInternal, CausalPolicyTreeLeaf, ComparisonTypes
  from responsibleai._internal.constants import FileFormats, SerializationAttributes
  from responsibleai._tools.causal.causal_config import CausalConfig
  from responsibleai._tools.causal.causal_constants import ResultAttributes
  from responsibleai._tools.shared.base_result import BaseResult
  from responsibleai._tools.shared.versions import CausalVersions
label_desc: Use image node_id 4 for calling the CausalResult obj's underlying member method code with example usage: obj._get_dashboard_object() and returns: causal_data