parameters: (cls, d)
return_statement: return result
docstring: This is called upon unpickling, rather than the default which doesn't
      have arguments and breaks __new__
docstring_summary: This is called upon unpickling, rather than the default which doesn't
      have arguments and breaks __new__
docstring_tokens: This is called upon unpickling rather than the default which doesn t have arguments and breaks __new__
function: def _new_DatetimeIndex(cls, d):
      """
      This is called upon unpickling, rather than the default which doesn't
      have arguments and breaks __new__
      """
      if "data" in d and not isinstance(d["data"], DatetimeIndex):
          # Avoid need to verify integrity by calling simple_new directly
          data = d.pop("data")
          result = cls._simple_new(data, **d)
      else:
          with warnings.catch_warnings():
              # TODO: If we knew what was going in to **d, we might be able to
              #  go through _simple_new instead
              warnings.simplefilter("ignore")
              result = cls.__new__(cls, **d)
  
      return result
function_tokens: def _new_DatetimeIndex ( cls , d ) : if "data" in d and not isinstance ( d [ "data" ] , DatetimeIndex ) : # Avoid need to verify integrity by calling simple_new directly data = d . pop ( "data" ) result = cls . _simple_new ( data , * * d ) else : with warnings . catch_warnings ( ) : # TODO: If we knew what was going in to **d, we might be able to #  go through _simple_new instead warnings . simplefilter ( "ignore" ) result = cls . __new__ ( cls , * * d ) return result