code: def series_to_json(value, obj):
      return value.to_dict()
  
imports: from traitlets import TraitError, TraitType
  import numpy
  import pandas
  import warnings
  import datetime
  import six
label_desc: Use image node_id 13 for calling a global function with example usage: series_to_json(value, obj) and returns: value