parameters: (obj)
return_statement: return obj
docstring: Workaround for numpy#4983: buffer protocol doesn't support
      datetime64 or timedelta64.
docstring_summary: Workaround for numpy#4983: buffer protocol doesn't support
      datetime64 or timedelta64.
docstring_tokens: Workaround for numpy#4983 : buffer protocol doesn t support datetime64 or timedelta64 .
function: def _workaround_for_datetime(obj):
      """Workaround for numpy#4983: buffer protocol doesn't support
      datetime64 or timedelta64.
      """
      if _is_datetime_dtype(obj):
          obj = obj.view(np.int64)
      return obj
function_tokens: def _workaround_for_datetime ( obj ) : if _is_datetime_dtype ( obj ) : obj = obj . view ( np . int64 ) return obj