class_docstr: Date Time Field Distribution
class_docstr_tok: ["Date","Time","Field","Distribution"]
docstr: add information of field value distribution for datetime type to the report.
  Details see analyzers inside `xai.data_explorer.datetime_analyzer`
  
  Args:
      field_name (str): data field name
      field_distribution (:dict of :dict):
          -key: label_name
          -value (:dict of :DatetimeStats):
              Note that in order to render it in 2D diagram, the resolution has to be ['YEAR','MONTH'].
              - 1st level key: year_X(int)
              - 1st level value:
                  - 2nd level key: month_X(int)
                  - 2nd level value: count of sample in month_X of year_X
      notes (str, Optional):
          explain the block
code: def __init__(
      self,
      field_name: str,
      field_distribution: Dict[str, explorer.DatetimeStats],
      notes=None,
  ) -> None:
      """
      add information of field value distribution for datetime type to the report.
      Details see analyzers inside `xai.data_explorer.datetime_analyzer`
  
      Args:
          field_name (str): data field name
          field_distribution (:dict of :dict):
              -key: label_name
              -value (:dict of :DatetimeStats):
                  Note that in order to render it in 2D diagram, the resolution has to be ['YEAR','MONTH'].
                  - 1st level key: year_X(int)
                  - 1st level value:
                      - 2nd level key: month_X(int)
                      - 2nd level value: count of sample in month_X of year_X
          notes (str, Optional):
              explain the block
      """
      super(DateTimeFieldDistribution, self).__init__(
          field_name, field_distribution, notes
      )
      self._field_name = field_name
      self._field_distribution = field_distribution
      if not (notes is None):
          self._notes = notes
      else:
          self._notes = "Distribution for %s" % self.field_name
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from typing import Tuple, Dict
  from xai.data import explorer
  from xai.formatter.contents.base import Content
  from xai.formatter.writer.base import Writer
label_desc: Use image node_id 1 to create a new DateTimeFieldDistribution object from inherited base classes: Content with example: obj = DateTimeFieldDistribution(field_name, field_distribution, notes)